Skip to content

Commit

Permalink
Handle missing Blinker
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Apr 22, 2014
1 parent 44397aa commit c7520a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,17 @@ def decorated_function(workflow, *args, **kwargs):
def workflow_submit(self, *args, **kwargs):
r = f.submit(self, *args, **kwargs)
workflow._setStateValue(t.state_to().value)
t.signal.send(t)
if t.signal is not None:
t.signal.send(t)
return r
if six.PY3: # pragma: no cover
result.submit = MethodType(workflow_submit, result)
else:
result.submit = MethodType(workflow_submit, result, f)
else:
workflow._setStateValue(t.state_to().value)
t.signal.send(t)
if t.signal is not None:
t.signal.send(t)

return result

Expand Down

0 comments on commit c7520a3

Please sign in to comment.