refactor: ruff autofixes

This commit is contained in:
Mark Paronyan committed 2026-10-17 11:43:36 +03:00
1 parent 54139dced2
commit b7e6c02647
39 files changed
+76 -88

No files matched your search

+5 -5
View File
@@ -965,7 +965,7 @@ class Node:
)
else:
await self.post("/start", data=data, timeout=240)
except asyncio.TimeoutError:
except TimeoutError:
raise ControllerTimeoutError(f"Timeout when starting {self._name}")
self._confirm_status("started")
# A started node may have brought kernel anchors into existence that
@@ -990,7 +990,7 @@ class Node:
# We don't care if a node is down at this step
if strict:
raise
except asyncio.TimeoutError:
except TimeoutError:
raise ControllerTimeoutError(f"Timeout when stopping {self._name}")
if stopped:
self._confirm_status("stopped")
@@ -1015,7 +1015,7 @@ class Node:
"""
try:
await self.post("/suspend", timeout=240)
except asyncio.TimeoutError:
except TimeoutError:
raise ControllerTimeoutError(f"Timeout when suspending {self._name}")
self._confirm_status("suspended")
@@ -1025,7 +1025,7 @@ class Node:
"""
try:
await self.post("/reload", timeout=240)
except asyncio.TimeoutError:
except TimeoutError:
raise ControllerTimeoutError(f"Timeout when reloading {self._name}")
self._confirm_status("started")
@@ -1037,7 +1037,7 @@ class Node:
if self._console and self._console_type in ("telnet", "ssh"):
try:
await self.post("/console/reset", timeout=240)
except asyncio.TimeoutError:
except TimeoutError:
raise ControllerTimeoutError(f"Timeout when reset console {self._name}")
async def get(self, path="", **kwargs):