tClient-side fix for #1324 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit d0308010da5053c405c0ad269542e9a7449e9bfd DIR parent dbdbdc87922d072e363eee5f88216cb1dedef3d1 HTML Author: Neil Booth <kyuupichan@gmail.com> Date: Tue, 30 Jun 2015 23:14:05 +0900 Client-side fix for #1324 Print messages rather than throwing uncaught exceptions that kill the tthread. I cannot fix the server side as I have no way to test it. Diffstat: M lib/synchronizer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- DIR diff --git a/lib/synchronizer.py b/lib/synchronizer.py t@@ -146,12 +146,14 @@ class WalletSynchronizer(util.DaemonThread): hist.append( (tx_hash, item['height']) ) if len(hist) != len(result): - raise Exception("error: server sent history with non-unique txid", result) + self.print_error("error: server sent history with non-unique txid", result) + continue # check that the status corresponds to what was announced rs = requested_histories.pop(addr) if self.wallet.get_status(hist) != rs: - raise Exception("error: status mismatch: %s"%addr) + self.print_error("error: status mismatch: %s" % addr) + continue # store received history self.wallet.receive_history_callback(addr, hist)