Include status in exception message
This commit is contained in:
parent
28db684400
commit
df9dd7152b
|
@ -69,7 +69,7 @@ class JSONRPCDaemon(object):
|
||||||
'end_height': end_height})
|
'end_height': end_height})
|
||||||
if res['status'] == 'OK':
|
if res['status'] == 'OK':
|
||||||
return res['headers']
|
return res['headers']
|
||||||
raise Exception()
|
raise exceptions.BackendException(res['status'])
|
||||||
|
|
||||||
def raw_request(self, path, data):
|
def raw_request(self, path, data):
|
||||||
hdr = {'Content-Type': 'application/json'}
|
hdr = {'Content-Type': 'application/json'}
|
||||||
|
|
Loading…
Reference in New Issue