mirror of
https://github.com/wolfswolke/DeathGarden_API_Rebirth.git
synced 2026-08-24 01:54:00 -05:00
NONE missing if session doesn't exist
This commit is contained in:
@@ -69,7 +69,7 @@ class Session_Manager:
|
||||
self.clean_sessions()
|
||||
if session_id not in self.sessions:
|
||||
logger.graylog_logger(level="info", handler="session_manager", message=f"Session ID: {session_id} not found.")
|
||||
abort(401)
|
||||
return None
|
||||
self.extend_session(session_id)
|
||||
return self.sessions[session_id]["user"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user