summaryrefslogtreecommitdiff
path: root/src/jwebmail/__init__.py
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2024-12-09 17:58:17 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2024-12-09 17:58:17 +0100
commit55688b969a645fbc6d94c76f51da3be976c1d098 (patch)
treeb0b72173c041fa1253fba2e3a0b55ce65d0c8006 /src/jwebmail/__init__.py
parent44b719671fe73b7378789968ecc8d48d7f9c00ca (diff)
make QMailAuthuser a context manager
Diffstat (limited to 'src/jwebmail/__init__.py')
-rw-r--r--src/jwebmail/__init__.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/jwebmail/__init__.py b/src/jwebmail/__init__.py
index a1bd00a..b4c01a1 100644
--- a/src/jwebmail/__init__.py
+++ b/src/jwebmail/__init__.py
@@ -4,7 +4,7 @@ from os import environ
from shutil import which
from babel import parse_locale
-from flask import Flask, abort, g, redirect, request_finished, url_for
+from flask import Flask, abort, g, redirect, url_for
from flask_babel import Babel, get_locale
from flask_login import LoginManager, login_required
from flask_wtf.csrf import CSRFProtect
@@ -36,7 +36,7 @@ else:
toml_read_file = dict(load=toml_load, text=True)
-__version__ = "2.8.2.dev0"
+__version__ = "2.8.2.dev1"
csrf = CSRFProtect()
@@ -122,12 +122,6 @@ def create_app():
except ValueError:
abort(404)
- @request_finished.connect_via(app)
- def close_qma(_app, **_):
- if "read_mails" in g:
- g.read_mails.close()
- g.read_mails = None
-
return app