From 3482f97bfbcb666cfd07bcb0b6fc601841d3c399 Mon Sep 17 00:00:00 2001 From: TLSM Date: Wed, 12 Oct 2022 04:32:18 -0400 Subject: [PATCH] Remove accidentally sneeded debug code. We were experiencing errors on prod where is_repost would not have either g or g.db available on request teardown, which would eventually culminate in errors.py:error_500. These haven't reoccurred for nearly 16hrs now, and the test code got caught in a 'sneed' commit. Best to have it gone. --- files/routes/errors.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/files/routes/errors.py b/files/routes/errors.py index 65f52cd45..e8f7776b8 100644 --- a/files/routes/errors.py +++ b/files/routes/errors.py @@ -47,8 +47,6 @@ def error_401(e): @app.errorhandler(500) def error_500(e): - if not g: print("500: not g") - if not g.db: print("500: not g.db") g.db.rollback() return error(e)