Insert guard clause for workflow.upsert_search_attributes on empty inputs
Fix for https://github.com/temporalio/sdk-python/issues/629
What was changed
Guard clause on workflow.upsert_search_attributes so SDK doesn't crash on empty input.
Why?
Spent 5 hours debugging an inscrutable error message.
Checklist
-
Closes 629
-
How was this tested: Pass empty list into
upsert_search_attributesin a workflow. -
Any docs updates needed? No
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
@cretz Signed CLA!
Thanks! We have a CI failure that is unrelated to this PR. Once it is fixed, we can come back and merge this.