fix TypeError Exception in session.py

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
Florian authored and GitHub committed 2026-03-09 12:21:36 +05:30
1 parent 3ecdc57a59
commit 00a44a5d76
1 file changed
+1 -1
+1 -1
View File
@@ -123,7 +123,7 @@ class CachingSessionManager(SessionManager):
# or None if it hasn't been set yet.
try:
return _session['_id'] is not None
except (AssertionError, RuntimeError, KeyError):
except (AssertionError, RuntimeError, KeyError, TypeError):
return False
def new_session(self):