raise exception to restart a session

This commit is contained in:
ThomasV 2011-11-14 22:03:28 +01:00
parent 26733107ff
commit 0e0b40921a
1 changed files with 1 additions and 0 deletions

View File

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