Skip to content

Commit

Permalink
fix: AttributeError
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Jul 21, 2023
1 parent fbdd204 commit d4fcfff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nexus/core/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
scope["__ssid"] = sessionId
scope["__sskey"] = sessionKey
initial_session_was_empty = False
except BadSignature:
except (BadSignature, AttributeError):
scope["session"] = {}
else:
scope["session"] = {}
Expand Down

0 comments on commit d4fcfff

Please sign in to comment.