Skip to content

Commit

Permalink
Small code review after merging pull request #15
Browse files Browse the repository at this point in the history
  • Loading branch information
tcalmant committed Feb 12, 2015
1 parent 2b6fe59 commit bea2174
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jsonrpclib/jsonrpc.py
Expand Up @@ -790,6 +790,7 @@ def __init__(self, code=-32000, message='Server error', rpcid=None,
:param message: Associated message
:param rpcid: Request ID
:param config: A JSONRPClib Config instance
:param data: Extra information added to an error description
"""
self.faultCode = code
self.faultString = message
Expand All @@ -803,7 +804,8 @@ def error(self):
:returns: A {'code', 'message'} dictionary
"""
return {'code': self.faultCode, 'message': self.faultString, 'data': self.data}
return {'code': self.faultCode, 'message': self.faultString,
'data': self.data}

def response(self, rpcid=None, version=None):
"""
Expand Down

0 comments on commit bea2174

Please sign in to comment.