mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-08-24 11:24:46 -05:00
Fix crash on attempted exploit of API server.
This commit is contained in:
@@ -46,7 +46,7 @@ def before_request() -> None:
|
||||
authtype = None
|
||||
authtoken = None
|
||||
|
||||
if authtype.lower() == "token":
|
||||
if authtype is not None and authtoken is not None and authtype.lower() == "token":
|
||||
g.authorized = g.data.local.api.validate_client(authtoken)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user