Skip to content
Snippets Groups Projects

Api hotfix sqlalchemy

6 files
+ 518
317
Compare changes
  • Side-by-side
  • Inline
Files
6
import json
from typing import Callable, Dict, Mapping
import logging
import uuid
from typing import Callable, Dict, Mapping
from cryptography.fernet import Fernet
from starlette.datastructures import MutableHeaders
@@ -73,6 +74,7 @@ class SessionMiddleware:
scope["session"] = await self.get_session(session_id)
initial_session_was_empty = False
except Exception:
logging.exception(f"Error loading session {session_id}")
scope["session"] = {}
else:
scope["session"] = {}
Loading