Skip to content

Commit

Permalink
One more guard
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Sep 24, 2024
1 parent a72af86 commit dc4037f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/io/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def add(self, handler: Handler) -> None:
super().add(handler)

def _set_session_prefix(self, doc):
if not doc.session_context:
if not doc.session_context and doc.session_context.server_context:
return
request = doc.session_context.request
app_context = doc.session_context.server_context.application_context
Expand Down

0 comments on commit dc4037f

Please sign in to comment.