[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r16921: {weather} pde and I found/fixed a bug in randstring() that was breakin (weather/trunk)



Author: ioerror
Date: 2008-09-17 18:28:49 -0400 (Wed, 17 Sep 2008)
New Revision: 16921

Modified:
   weather/trunk/poll.py
Log:
pde and I found/fixed a bug in randstring() that was breaking karsten's ability to confirm his email address. 


Modified: weather/trunk/poll.py
===================================================================
--- weather/trunk/poll.py	2008-09-17 14:02:00 UTC (rev 16920)
+++ weather/trunk/poll.py	2008-09-17 22:28:49 UTC (rev 16921)
@@ -15,6 +15,9 @@
 from config import poll_period, ping_targets, weather_storage
 from weather import parse_subscriptions
 
+# Lets debug this
+import traceback
+
 debug = 0
 
 
@@ -51,6 +54,10 @@
     try:
        info = self.control.get_info(string)
     except:
+        x = traceback.format_exc()
+        fh = file("/tmp/failed-ping-log", a)
+        file.write(x)
+        file.close(fh)
         info = None
         return False
     # info looks like this: