From 665fea710737f1e5ca3f7afb5fb155cf05f3b0d9 Mon Sep 17 00:00:00 2001 From: Rodolphe Marques Date: Tue, 26 Apr 2016 14:50:04 +0200 Subject: [PATCH] replaced generic exception --- bigchaindb/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigchaindb/core.py b/bigchaindb/core.py index e8d30855..416166f8 100644 --- a/bigchaindb/core.py +++ b/bigchaindb/core.py @@ -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]