mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
replaced generic exception
This commit is contained in:
parent
2137203366
commit
665fea7107
@ -204,7 +204,7 @@ class Bigchain(object):
|
||||
transactions = list(response)
|
||||
if transactions:
|
||||
if len(transactions) != 1:
|
||||
raise Exception('`{}` was spent more then once. There is a problem with the chain'.format(
|
||||
raise exceptions.DoubleSpend('`{}` was spent more then once. There is a problem with the chain'.format(
|
||||
tx_input['txid']))
|
||||
else:
|
||||
return transactions[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user