refactor: reorganize import statements and improve code formatting across multiple files

This commit is contained in:
Abhimanyu Saharan
2026-02-13 16:22:00 +05:30
parent ebb9c659d2
commit 9a5964a31c
9 changed files with 16 additions and 13 deletions

View File

@@ -77,7 +77,9 @@ def _is_missing_agent_error(exc: OpenClawGatewayError) -> bool:
message = str(exc).lower()
if not message:
return False
if any(marker in message for marker in ("unknown agent", "no such agent", "agent does not exist")):
if any(
marker in message for marker in ("unknown agent", "no such agent", "agent does not exist")
):
return True
return "agent" in message and "not found" in message