Trying to add things to help debug why I get an incomplete json response when first...
authorEd Page <eopage@byu.net>
Fri, 17 Apr 2009 15:34:47 +0000 (10:34 -0500)
committerEd Page <eopage@byu.net>
Fri, 17 Apr 2009 15:34:47 +0000 (10:34 -0500)
src/doneit_glade.py
src/rtm_api.py

index daaa760..3c3521d 100755 (executable)
@@ -13,6 +13,7 @@ import os
 import threading
 import warnings
 import ConfigParser
+import socket
 
 import gtk
 import gtk.glade
@@ -25,6 +26,9 @@ except ImportError:
 import gtk_toolbox
 
 
+socket.setdefaulttimeout(10)
+
+
 class DoneIt(object):
 
        __pretty_app_name__ = "DoneIt"
index e53009b..148ae7d 100644 (file)
@@ -212,6 +212,9 @@ def safer_eval(string):
        try:
                return eval(string, {}, {})
        except SyntaxError, e:
+               print "="*60
+               print string
+               print "="*60
                newE = RTMParseError("Error parseing json")
                newE.error = e
                raise newE