git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4b08230
)
Force JSONRPC error message to Unicode to deal with faulty JSON parser in Python 2.7
author
Forrest Voight
<forrest.voight@gmail.com>
Sun, 11 Mar 2012 16:11:29 +0000 (12:11 -0400)
committer
Forrest Voight
<forrest.voight@gmail.com>
Sun, 11 Mar 2012 16:11:29 +0000 (12:11 -0400)
p2pool/util/jsonrpc.py
patch
|
blob
|
history
diff --git
a/p2pool/util/jsonrpc.py
b/p2pool/util/jsonrpc.py
index
6cbd2c8
..
f223f37
100644
(file)
--- a/
p2pool/util/jsonrpc.py
+++ b/
p2pool/util/jsonrpc.py
@@
-64,7
+64,7
@@
class Proxy(object):
if resp['id'] != id_:
raise ValueError('invalid id')
if 'error' in resp and resp['error'] is not None:
- raise Error(**resp['error'])
+ raise Error(**unicode(resp['error']))
defer.returnValue(resp['result'])
def __getattr__(self, attr):