All MyPy and Ruff checked

This commit is contained in:
Renn F
2025-12-13 05:50:34 +01:00
parent a2424be80c
commit 35ef0108e9
47 changed files with 1953 additions and 414 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ async def validate_channel_access(channel_id: UUID, agent_id: UUID) -> bool:
)
if response.status_code == status.HTTP_200_OK:
data = response.json()
return data.get("allowed", False)
return bool(data.get("allowed", False))
return False
except Exception:
# On error, deny access (fail closed)