forked from rDrama/rDrama
1
0
Fork 0

mute annoying error

master
Aevann 2023-07-18 16:02:31 +03:00
parent 3be01ba40a
commit d2ee5be219
1 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,8 @@ def get_logged_in_user():
if (v.last_active + LOGGEDIN_ACTIVE_TIME) < timestamp:
v.last_active = timestamp
g.db.add(v)
try: g.db.flush()
except: g.db.rollback()
if not v and SITE == 'rdrama.net' and request.headers.get("Cf-Ipcountry") == 'EG':
abort(404)