updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / python2-jsonrpc-bzr / 001-jsonrpc-2.0-no-error-in-response.patch
blob5c8d616ba77da3126ae483bebcc7067e3b12bd5e
1 --- jsonrpc/proxy.py.orig 2011-11-16 11:44:06.145643756 +0200
2 +++ jsonrpc/proxy.py 2011-11-16 11:45:27.198537988 +0200
3 @@ -41,7 +41,7 @@
4 postdata = dumps({"method": self.__serviceName, 'params': args, 'id':'jsonrpc'})
5 respdata = urllib.urlopen(self.__serviceURL, postdata).read()
6 resp = loads(respdata)
7 - if resp['error'] != None:
8 + if 'error' in resp and resp['error'] != None:
9 raise JSONRPCException(resp['error'])
10 else:
11 return resp['result']