fix TypeError Exception in session.py
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>pull/9691/head^2
parent
3ecdc57a59
commit
00a44a5d76
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue