From 456a1f3478cf5f2e99ec44104a07645d9b04524e Mon Sep 17 00:00:00 2001 From: Ana Krivokapic Date: Wed, 27 Sep 2017 18:05:48 +0200 Subject: [PATCH] Fix error handling for actions Change-Id: I0d6c8ad92c22d01d5994fcbd41d7d4de775d2fb1 Closes-bug: #1719947 (cherry picked from commit aacefea28d653f22fb46499697765efbc201f69b) --- tripleoclient/exceptions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tripleoclient/exceptions.py b/tripleoclient/exceptions.py index fe331a61e..adafe7905 100644 --- a/tripleoclient/exceptions.py +++ b/tripleoclient/exceptions.py @@ -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)