display json errors if fail to parse
authorForrest Voight <forrest@forre.st>
Tue, 19 Jul 2011 15:13:18 +0000 (11:13 -0400)
committerForrest Voight <forrest@forre.st>
Tue, 19 Jul 2011 15:13:18 +0000 (11:13 -0400)
p2pool/util/jsonrpc.py

index bb8c711..b66220f 100644 (file)
@@ -52,7 +52,10 @@ class Proxy(object):
                 }),
             )
         except error.Error, e:
-            resp = json.loads(e.response)
+            try:
+                resp = json.loads(e.response)
+            except:
+                raise e
         else:
             resp = json.loads(data)