From d2ee5be219e73083c9b1bd7b6d6fa0589cad063a Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 18 Jul 2023 16:02:31 +0300 Subject: [PATCH] mute annoying error --- files/routes/wrappers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/wrappers.py b/files/routes/wrappers.py index 46648fc59..c43e53208 100644 --- a/files/routes/wrappers.py +++ b/files/routes/wrappers.py @@ -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)