From cf4b981bb47def17518ea319c458f318a06b49fc Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 29 Sep 2023 03:22:20 +0300 Subject: [PATCH] fix 500 error --- files/routes/wrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/wrappers.py b/files/routes/wrappers.py index 40c53eaa8..ae4c685d9 100644 --- a/files/routes/wrappers.py +++ b/files/routes/wrappers.py @@ -118,7 +118,7 @@ def get_logged_in_user(): g.is_tor = (request.headers.get("cf-ipcountry") == "T1" and not (v and v.truescore >= 1000)) - if v and not IS_EVENT(): + if v and not IS_EVENT() and session.get("event_music"): session.pop("event_music") return v