From 6f27e50cf09f322fa1aa3fddd539343ea522ee89 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 2 Mar 2018 21:54:52 +0100 Subject: [PATCH] Fix exception string format The string %(action) is not valid, it misses the conversion specified, add s for string. Note that this leads to an untranslatable string, since our translation tools check for valid formats and fail. In this case the failure comes from a source code fail. Change-Id: I2e630928dc32542a8a7c02657a9f0ab1eaab62ff --- watcher/common/exception.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watcher/common/exception.py b/watcher/common/exception.py index 12f952c87..7326ffba4 100644 --- a/watcher/common/exception.py +++ b/watcher/common/exception.py @@ -305,7 +305,7 @@ class ActionFilterCombinationProhibited(Invalid): class UnsupportedActionType(UnsupportedError): - msg_fmt = _("Provided %(action_type) is not supported yet") + msg_fmt = _("Provided %(action_type)s is not supported yet") class EfficacyIndicatorNotFound(ResourceNotFound):