Skip to content

Commit

Permalink
Make error message more accurate
Browse files Browse the repository at this point in the history
Co-authored-by: Chad Retz <[email protected]>
  • Loading branch information
dandavison and cretz committed Feb 5, 2025
1 parent 65e65d7 commit 4577018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion temporalio/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def client() -> Client:
:py:class:`temporalio.client.Client` for use in the current activity.
Raises:
RuntimeError: When not in an activity.
RuntimeError: When not in an activity or in a testing environment where client wasn't set.
"""
client = _Context.current().client
if not client:
Expand Down

0 comments on commit 4577018

Please sign in to comment.