From 0dc62cc38ef0b8a499af912bcdc9d817b11a4211 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 16 Sep 2021 10:22:21 +0200 Subject: [PATCH] fd --- files/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/__main__.py b/files/__main__.py index 2324e26954..be3d391598 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -170,7 +170,7 @@ def before_request(): g.system="other/other" @app.teardown_appcontext -def teardown_request(): +def teardown_request(error): if hasattr(g, 'db') and g.db: g.db.commit() g.db.close()