forked from rDrama/rDrama
mute annoying error
parent
3be01ba40a
commit
d2ee5be219
|
@ -115,6 +115,8 @@ def get_logged_in_user():
|
||||||
if (v.last_active + LOGGEDIN_ACTIVE_TIME) < timestamp:
|
if (v.last_active + LOGGEDIN_ACTIVE_TIME) < timestamp:
|
||||||
v.last_active = timestamp
|
v.last_active = timestamp
|
||||||
g.db.add(v)
|
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':
|
if not v and SITE == 'rdrama.net' and request.headers.get("Cf-Ipcountry") == 'EG':
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
Loading…
Reference in New Issue