mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 14:51:13 +02:00
refactor: ruff autofixes
This commit is contained in:
39 files changed
+76
-88
No files matched your search
@@ -80,7 +80,7 @@ class DynamipsHypervisor:
|
||||
self._reader, self._writer = await asyncio.wait_for(
|
||||
asyncio.open_connection(host, self._port), timeout=1
|
||||
)
|
||||
except (asyncio.TimeoutError, OSError) as e:
|
||||
except (TimeoutError, OSError) as e:
|
||||
last_exception = e
|
||||
continue
|
||||
connection_success = True
|
||||
|
||||
@@ -144,7 +144,7 @@ class Hypervisor(DynamipsHypervisor):
|
||||
await asyncio.sleep(0.01)
|
||||
try:
|
||||
await wait_for_process_termination(self._process, timeout=3)
|
||||
except asyncio.TimeoutError:
|
||||
except TimeoutError:
|
||||
if self._process.returncode is None:
|
||||
log.warning(f"Dynamips process {self._process.pid} is still running... killing it")
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user