Skip to content
Browse files

ProtocolErrors raise a (code, message) tuple instead of a string as p…

…er request in issue #6.

git-svn-id: http://jsonrpclib.googlecode.com/svn/trunk@17 ae587032-bbab-11de-869a-473eb4776397
  • Loading branch information...
1 parent 391c49b commit 9cb9396c901daeeb9bf47675bbce707671b5e6af catchjosh committed Jun 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 jsonrpclib/jsonrpclib.py
View
2 jsonrpclib/jsonrpclib.py
@@ -457,7 +457,7 @@ def check_for_errors(result):
if 'error' in result.keys() and result['error'] != None:
code = result['error']['code']
message = result['error']['message']
- raise ProtocolError('ERROR %s: %s' % (code, message))
+ raise ProtocolError((code, message))
return result
def isbatch(result):

0 comments on commit 9cb9396

Please sign in to comment.
Something went wrong with that request. Please try again.