Fix error handling for actions

Change-Id: I0d6c8ad92c22d01d5994fcbd41d7d4de775d2fb1
Closes-bug: #1719947
This commit is contained in:
Ana Krivokapic 2017-09-27 18:05:48 +02:00
parent 27bba766da
commit aacefea28d

View File

@ -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)