mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Do not strictly expect deliver_tx in the response.
This commit is contained in:
parent
b31c59c0af
commit
9c5ba722f9
@ -99,7 +99,7 @@ class BigchainDB(object):
|
||||
result = response['result']
|
||||
if mode == self.mode_commit:
|
||||
check_tx_code = result.get('check_tx', {}).get('code', 0)
|
||||
deliver_tx_code = result['deliver_tx'].get('code', 0)
|
||||
deliver_tx_code = result.get('deliver_tx', {}).get('code', 0)
|
||||
error_code = check_tx_code or deliver_tx_code
|
||||
else:
|
||||
error_code = result.get('code', 0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user