Skip to content

Commit

Permalink
Handle session context where session is not defined (#7634)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Jan 20, 2025
1 parent 4c9bc99 commit 958cff8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panel/io/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ def _unblocked(self, doc: Document) -> bool:
return bool(
doc is self.curdoc and
self._thread_id in (self._current_thread, None) and
(not (doc and doc.session_context and doc.session_context.session) or self._loaded.get(doc))
(not (doc and doc.session_context and getattr(doc.session_context, 'session', None))
or self._loaded.get(doc))
)

@param.depends('_busy_counter', watch=True)
Expand Down

0 comments on commit 958cff8

Please sign in to comment.