Include status in exception message

This commit is contained in:
Michał Sałaban 2019-12-11 11:25:14 +01:00
parent 28db684400
commit df9dd7152b
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class JSONRPCDaemon(object):
'end_height': end_height})
if res['status'] == 'OK':
return res['headers']
raise Exception()
raise exceptions.BackendException(res['status'])
def raw_request(self, path, data):
hdr = {'Content-Type': 'application/json'}