traise exception to restart a session - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 0e0b40921abfe1fd4aa83a00ad4a08a57eac1a0c DIR parent 26733107ff3a9451efd5b42e7eb9c0bb0f534d66 HTML Author: ThomasV <thomasv@gitorious> Date: Mon, 14 Nov 2011 22:03:28 +0100 raise exception to restart a session Diffstat: M client/electrum.py | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) --- DIR diff --git a/client/electrum.py b/client/electrum.py t@@ -463,6 +463,7 @@ class Wallet: def update(self): blocks, changed_addresses = self.poll() + if blocks == -1: raise BaseException("session not found") self.blocks = int(blocks) for addr, blk_hash in changed_addresses.items(): if self.status[addr] != blk_hash: