File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 11import asyncio
22import logging
33import collections
4- import concurrent
54import os
65from typing import Callable , List , Optional , Tuple
76from yaml import safe_load
@@ -84,7 +83,7 @@ async def interact():
8483 except ConnectionError :
8584 log .info ("Connection error in ssh UI, exiting." )
8685 ui .close ()
87- # raise
86+ raise
8887
8988 ssh_server = await asyncssh .create_server (
9089 lambda : PromptToolkitSSHServer (interact ),
@@ -481,9 +480,7 @@ async def update_ui(self):
481480
482481 if self .app and not self .app .invalidated :
483482 self .app .invalidate ()
484- await asyncio .sleep (1 )
485- except concurrent .futures ._base .CancelledError as e :
486- log .warn (f"Cancelled error in UI: { type (e )} : { e } " )
483+ await asyncio .sleep (1.5 )
487484 except Exception as e :
488485 log .warn (f"Exception in UI update_ui { type (e )} : { e } " )
489486 raise e
@@ -521,9 +518,7 @@ async def update_data(self):
521518 else (0 , bytes (pk ))
522519 for pk in self .pool_pks
523520 ]
524- await asyncio .sleep (5 )
525- except concurrent .futures ._base .CancelledError as e :
526- log .warn (f"Cancelled error in UI: { type (e )} : { e } " )
521+ await asyncio .sleep (7.5 )
527522 except Exception as e :
528523 log .warn (f"Exception in UI update_data { type (e )} : { e } " )
529524 raise e
You can’t perform that action at this time.
0 commit comments