proto.xmr.tw.view: handle RPC exception on refresh
This commit is contained in:
parent
b2dae7fa6f
commit
1a0f273d84
1 changed files with 2 additions and 2 deletions
|
|
@ -64,12 +64,12 @@ class MoneroTwView:
|
|||
from mmgen.tw.shared import TwMMGenID, TwLabel
|
||||
|
||||
if refresh:
|
||||
from ....exception import SocketError
|
||||
from ....exception import SocketError, RPCFailure
|
||||
cfg = Config({'_clone': self.cfg, 'cur_wallet': self.cur_wallet})
|
||||
op = xmrwallet_op('dump_data_refresh', cfg, None, None, compat_call=True)
|
||||
try:
|
||||
dump_data = await op.main()
|
||||
except SocketError as e:
|
||||
except (SocketError, RPCFailure) as e:
|
||||
ymsg(f'Refresh failed: {e}')
|
||||
await asyncio.sleep(1.5)
|
||||
return None
|
||||
|
|
|
|||
Loading…
Reference in a new issue