Rename cause -> exception and make exception optional.

This commit is contained in:
Joshua Harlow
2013-05-22 16:22:07 -07:00
parent afea4f0732
commit c52ea9b15b

View File

@@ -32,10 +32,10 @@ class FlowFailure(object):
"""When a task failure occurs the following object will be given to revert
and can be used to interrogate what caused the failure."""
def __init__(self, task, flow, cause):
def __init__(self, task, flow, exception=None):
self.task = task
self.flow = flow
self.cause = cause
self.exception = exception
class Flow(object):