refactor: reorganize import statements and improve code formatting across multiple files
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user