feat: older python syntax compat
This commit is contained in:
parent
a939032ebc
commit
e0a74dc23d
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
if secrets.compare_digest(authorization.split()[1], settings.API_KEY):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
except AttributeError, TypeError, IndexError:
|
except (AttributeError, TypeError, IndexError):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue