Skip to content
This repository was archived by the owner on Apr 12, 2018. It is now read-only.

Commit 89a29aa

Browse files
committed
Fix WorkflowExecution.signal(): fix empty input
1 parent f6bce63 commit 89a29aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

swf/models/workflow.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,11 +471,13 @@ def signal(self, signal_name, input=None, *args, **kwargs):
471471
event in the target workflow execution’s history.
472472
:type input: dict
473473
"""
474+
if input is None:
475+
input = {}
474476
self.connection.signal_workflow_execution(
475477
self.domain.name,
476478
signal_name,
477479
self.workflow_id,
478-
input=json.dumps(input or '{}'),
480+
input=json.dumps(input),
479481
run_id=self.run_id)
480482

481483
@exceptions.translate(SWFResponseError,

0 commit comments

Comments
 (0)