Update simplejsonrpc.py

Default best placed in method signature, 
Thanks to cassiobotaro for pointing it out
This commit is contained in:
Tim Nyborg
2015-08-19 11:59:40 +01:00
parent edcc2e44dc
commit 5030d3144f
+2 -2
View File
@@ -33,8 +33,8 @@ except ImportError:
class JSONRPCError(RuntimeError):
"Error object for remote procedure call fail"
def __init__(self, code, message, data=None):
value = "%s: %s\n%s" % (code, message, '\n'.join(data or ''))
def __init__(self, code, message, data=''):
value = "%s: %s\n%s" % (code, message, '\n'.join(data))
RuntimeError.__init__(self, value)
self.code = code
self.message = message