From e0a74dc23d84b8d6de4cc5bbc505ec154b25682a Mon Sep 17 00:00:00 2001 From: irl Date: Tue, 19 May 2026 14:20:52 +0100 Subject: [PATCH] feat: older python syntax compat --- src/security.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/security.py b/src/security.py index 3c49e4a..c384ff2 100644 --- a/src/security.py +++ b/src/security.py @@ -14,7 +14,7 @@ def api_key(host: str = Header(), authorization: str | None = Header(None)) -> b if secrets.compare_digest(authorization.split()[1], settings.API_KEY): return True return False - except AttributeError, TypeError, IndexError: + except (AttributeError, TypeError, IndexError): return False