File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
images/utils/launcher/node Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 8
8
from concurrent .futures import wait
9
9
from threading import Event
10
10
from typing import List , Optional
11
+ import docker .errors
11
12
12
13
from launcher .table import ServiceTable
13
14
from launcher .utils import yes_or_no , normalize_path
@@ -478,11 +479,14 @@ def ensure_ready(self, stop: Event):
478
479
# xud is starting... try again in a few seconds
479
480
# xud is locked, run 'xucli unlock', 'xucli create', or 'xucli restore' then try again
480
481
while not stop .is_set ():
481
- exit_code , output = self .exec (self ._cli + " getinfo -j" )
482
- if exit_code == 0 :
483
- break
484
- if "xud is locked" in output :
485
- break
482
+ try :
483
+ exit_code , output = self .exec (self ._cli + " getinfo -j" )
484
+ if exit_code == 0 :
485
+ break
486
+ if "xud is locked" in output :
487
+ break
488
+ except docker .errors .APIError :
489
+ logger .exception ("Failed to getinfo" )
486
490
stop .wait (3 )
487
491
488
492
if not self .has_wallets ():
You can’t perform that action at this time.
0 commit comments