raise exception to restart a session
This commit is contained in:
parent
26733107ff
commit
0e0b40921a
|
@ -463,6 +463,7 @@ class Wallet:
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
blocks, changed_addresses = self.poll()
|
blocks, changed_addresses = self.poll()
|
||||||
|
if blocks == -1: raise BaseException("session not found")
|
||||||
self.blocks = int(blocks)
|
self.blocks = int(blocks)
|
||||||
for addr, blk_hash in changed_addresses.items():
|
for addr, blk_hash in changed_addresses.items():
|
||||||
if self.status[addr] != blk_hash:
|
if self.status[addr] != blk_hash:
|
||||||
|
|
Loading…
Reference in New Issue