Fix error handling for actions
Change-Id: I0d6c8ad92c22d01d5994fcbd41d7d4de775d2fb1
Closes-bug: #1719947
(cherry picked from commit aacefea28d
)
This commit is contained in:
parent
f114a6194b
commit
456a1f3478
|
@ -88,8 +88,8 @@ class WorkflowActionError(Exception):
|
|||
"""Workflow action failed"""
|
||||
msg_format = "Action {} execution failed: {}"
|
||||
|
||||
def __init__(self, message, action='', output=''):
|
||||
message = message.format(action, output)
|
||||
def __init__(self, action='', output=''):
|
||||
message = self.msg_format.format(action, output)
|
||||
super(WorkflowActionError, self).__init__(message)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue