File tree 1 file changed +11
-8
lines changed
1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -369,14 +369,17 @@ def build_namespace(cls,
369
369
futures = list (future2address .keys ())
370
370
c .print (f'Updating namespace { network } with { len (futures )} addresses' )
371
371
372
- for f in c .as_completed (futures , timeout = timeout ):
373
- address = future2address [f ]
374
- try :
375
- name = f .result ()
376
- namespace [name ] = address
377
- c .print (f'Updated { name } to { address } ' , color = 'green' , verbose = verbose )
378
- except Exception as e :
379
- c .print (f'Error { e } with { address } ' , color = 'red' , verbose = verbose )
372
+ try :
373
+ for f in c .as_completed (futures , timeout = timeout ):
374
+ address = future2address [f ]
375
+ try :
376
+ name = f .result ()
377
+ namespace [name ] = address
378
+ c .print (f'Updated { name } to { address } ' , color = 'green' , verbose = verbose )
379
+ except Exception as e :
380
+ c .print (f'Error { e } with { address } ' , color = 'red' , verbose = verbose )
381
+ except TimeoutError as e :
382
+ c .print (f'Timeout error { e } ' , color = 'red' , verbose = verbose )
380
383
381
384
cls .put_namespace (network , namespace )
382
385
You can’t perform that action at this time.
0 commit comments