git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
76a062d
)
disabled non-unicode error for JSON errors
author
Forrest Voight
<forrest.voight@gmail.com>
Sun, 11 Mar 2012 17:21:23 +0000 (13:21 -0400)
committer
Forrest Voight
<forrest.voight@gmail.com>
Sun, 11 Mar 2012 17:21:23 +0000 (13:21 -0400)
p2pool/util/jsonrpc.py
patch
|
blob
|
history
diff --git
a/p2pool/util/jsonrpc.py
b/p2pool/util/jsonrpc.py
index
6cbd2c8
..
d29cdf0
100644
(file)
--- a/
p2pool/util/jsonrpc.py
+++ b/
p2pool/util/jsonrpc.py
@@
-13,8
+13,8
@@
class Error(Exception):
def __init__(self, code, message, data=None):
if not isinstance(code, int):
raise TypeError('code must be an int')
- if not isinstance(message, unicode):
- raise TypeError('message must be a unicode')
+ #if not isinstance(message, unicode):
+ # raise TypeError('message must be a unicode')
self.code, self.message, self.data = code, message, data
def __str__(self):
return '%i %s' % (self.code, self.message) + (' %r' % (self.data, ) if self.data is not None else '')