git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e52c493
)
display json errors if fail to parse
author
Forrest Voight
<forrest@forre.st>
Tue, 19 Jul 2011 15:13:18 +0000 (11:13 -0400)
committer
Forrest Voight
<forrest@forre.st>
Tue, 19 Jul 2011 15:13:18 +0000 (11:13 -0400)
p2pool/util/jsonrpc.py
patch
|
blob
|
history
diff --git
a/p2pool/util/jsonrpc.py
b/p2pool/util/jsonrpc.py
index
bb8c711
..
b66220f
100644
(file)
--- a/
p2pool/util/jsonrpc.py
+++ b/
p2pool/util/jsonrpc.py
@@
-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)