diff --git a/files/helpers/wrappers.py b/files/helpers/wrappers.py index 1bcd0d9df..b6f123db0 100644 --- a/files/helpers/wrappers.py +++ b/files/helpers/wrappers.py @@ -76,7 +76,7 @@ def get_logged_in_user(): if v: v.poor = session.get('poor') - if SITE == 'rdrama.net' and v.id == 3732: + if SITE == 'rdrama.net' and v and v.id == 3732: print(request.headers.get('CF-Connecting-IP'), flush=True) if AEVANN_ID and request.headers.get("Cf-Ipcountry") == 'EG':