Apply suggestion from @greptile-apps[bot]

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Ishaan Jaff 2026-02-21 10:05:50 -08:00 committed by GitHub
parent d8d088b669
commit 3ca8dec638
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,7 +59,7 @@ def _run(checker, text: str) -> dict:
return {"decision": "ALLOW", "score": 0.0, "matched_topic": None}
except HTTPException as e:
if e.status_code == 403:
detail: dict[str, Any] = e.detail if isinstance(e.detail, dict) else {}
detail: Dict[str, Any] = e.detail if isinstance(e.detail, dict) else {}
return {
"decision": "BLOCK",
"score": detail.get("score", 1.0),