From e3d06f7a1d140a8668d07d293bd9faa4e3df02b8 Mon Sep 17 00:00:00 2001 From: Son Date: Fri, 31 Dec 2021 11:10:46 +0100 Subject: [PATCH] disable the sqlalchemy debug panels locally --- server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 925b43b9..98034098 100644 --- a/server.py +++ b/server.py @@ -769,7 +769,9 @@ def local_main(): app.debug = True DebugToolbarExtension(app) - app.config["DEBUG_TB_PANELS"] += ("flask_debugtoolbar_sqlalchemy.SQLAlchemyPanel",) + # disable the sqlalchemy debug panels because of "IndexError: pop from empty list" from: + # duration = time.time() - conn.info['query_start_time'].pop(-1) + # app.config["DEBUG_TB_PANELS"] += ("flask_debugtoolbar_sqlalchemy.SQLAlchemyPanel",) app.run(debug=True, port=7777)