fixed typo

This commit is contained in:
Rodolphe Marques 2016-11-21 14:10:20 +01:00
parent 8998625706
commit 3ec79a54e7

View File

@ -426,9 +426,10 @@ class Bigchain(object):
if self.get_transaction(transaction['id']):
num_valid_transactions += 1
if num_valid_transactions > 1:
raise exceptions.DoubleSpend(
'`{}` was spent more then once. There is a problem with the chain'.format(
txid))
raise exceptions.DoubleSpend(('`{}` was spent more than'
' once. There is a problem'
' with the chain')
.format(txid))
if num_valid_transactions:
return Transaction.from_dict(transactions[0])