Revert "Force JSONRPC error message to Unicode to deal with faulty JSON parser in...
authorForrest Voight <forrest.voight@gmail.com>
Sun, 11 Mar 2012 17:21:01 +0000 (13:21 -0400)
committerForrest Voight <forrest.voight@gmail.com>
Sun, 11 Mar 2012 17:21:01 +0000 (13:21 -0400)
This reverts commit a993377823160571dc35b702d6a6e7a6d0c63c39.

p2pool/util/jsonrpc.py

index f223f37..6cbd2c8 100644 (file)
@@ -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(**unicode(resp['error']))
+            raise Error(**resp['error'])
         defer.returnValue(resp['result'])
     
     def __getattr__(self, attr):