Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Jan 27, 2025
1 parent 1db4dc0 commit 4d105ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions temporalio/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,7 @@ def encode_search_attributes(
DEPRECATED.
api: API message to set converted attributes on.
"""
api.indexed_fields.clear() # Ensure that we at least create an empty map
if isinstance(attributes, temporalio.common.TypedSearchAttributes):
for typed_k, typed_v in attributes:
api.indexed_fields[typed_k.name].CopyFrom(
Expand Down

0 comments on commit 4d105ff

Please sign in to comment.