commit 0e0b40921abfe1fd4aa83a00ad4a08a57eac1a0c
parent 26733107ff3a9451efd5b42e7eb9c0bb0f534d66
Author: ThomasV <thomasv@gitorious>
Date: Mon, 14 Nov 2011 22:03:28 +0100
raise exception to restart a session
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/client/electrum.py b/client/electrum.py
@@ -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: