fix TypeError Exception in session.py

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
pull/9691/head^2
Florian 2026-03-09 07:51:36 +01:00 committed by GitHub
parent 3ecdc57a59
commit 00a44a5d76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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):