From 10b02b37c98d0fdde85eaa7024f7836eb139fe41 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 7 Nov 2012 21:59:06 +0100 Subject: [PATCH] raise exception on status mismatch too --- lib/wallet.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/wallet.py b/lib/wallet.py index 9a5db91e..7fd16a3f 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -1060,8 +1060,7 @@ class WalletSynchronizer(threading.Thread): # check that the status corresponds to what was announced if self.wallet.get_status(hist) != requested_histories.pop(addr): - print "error: status mismatch:", addr - continue + raise BaseException("error: status mismatch: %s"%addr) # store received history self.wallet.receive_history_callback(addr, hist)