Skip to content

Commit 59997c5

Browse files
committed
Bug fix
1 parent e44fac5 commit 59997c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

temporalio/converter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,7 @@ def encode_search_attributes(
11511151
DEPRECATED.
11521152
api: API message to set converted attributes on.
11531153
"""
1154+
api.indexed_fields.clear() # Ensure that we at least create an empty map
11541155
if isinstance(attributes, temporalio.common.TypedSearchAttributes):
11551156
for typed_k, typed_v in attributes:
11561157
api.indexed_fields[typed_k.name].CopyFrom(

0 commit comments

Comments
 (0)