Skip to content

Commit abf45cb

Browse files
dandavisoncretz
andauthored
Make error message more accurate
Co-authored-by: Chad Retz <[email protected]>
1 parent 3164f69 commit abf45cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

temporalio/activity.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def client() -> Client:
247247
:py:class:`temporalio.client.Client` for use in the current activity.
248248
249249
Raises:
250-
RuntimeError: When not in an activity.
250+
RuntimeError: When not in an activity or in a testing environment where client wasn't set.
251251
"""
252252
client = _Context.current().client
253253
if not client:

0 commit comments

Comments
 (0)