Skip to content

Commit

Permalink
rename to event_context
Browse files Browse the repository at this point in the history
  • Loading branch information
dgodinez-dh committed Nov 22, 2024
1 parent 2b5af04 commit 490334e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/ui/src/deephaven/ui/_internal/EventContext.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_event_context() -> EventContext:
The active EventContext, or throws if none is present.
"""
try:
return _local_data.context
return _local_data.event_context
except AttributeError:
raise NoContextException("No context set")

Expand All @@ -37,9 +37,9 @@ def _set_event_context(context: Optional[EventContext]):
Set the current context for the thread. Can be set to None to unset the context for a thread.
"""
if context is None:
del _local_data.context
del _local_data.event_context
else:
_local_data.context = context
_local_data.event_context = context


class EventContext:
Expand Down

0 comments on commit 490334e

Please sign in to comment.