Skip to content

Commit 2e6d742

Browse files
authored
Insert guard clause for workflow.upsert_search_attributes on empty inputs (#630)
1 parent a1b5d65 commit 2e6d742

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

temporalio/workflow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,8 @@ def upsert_search_attributes(
934934
DEPRECATED and if used, result in invalid key types on the
935935
typed_search_attributes property in the info.
936936
"""
937+
if not attributes:
938+
return
937939
temporalio.common._warn_on_deprecated_search_attributes(attributes)
938940
_Runtime.current().workflow_upsert_search_attributes(attributes)
939941

0 commit comments

Comments
 (0)