raise exception on status mismatch too

This commit is contained in:
ThomasV 2012-11-07 21:59:06 +01:00
parent da93473ee1
commit 10b02b37c9
1 changed files with 1 additions and 2 deletions

View File

@ -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)