pass exception on if not 500 internal server error
This commit is contained in:
parent
63cce44bee
commit
2ed44ed6d9
@ -78,6 +78,8 @@ class BitcoinRPC(object):
|
||||
if (str(e) == "500 Internal Server Error"):
|
||||
resp = (yield self._call('getblocktemplate', []))
|
||||
defer.returnValue(json.loads(resp)['result'])
|
||||
else:
|
||||
raise
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def prevhash(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user