From 28fe229a6fd6b013c2079019644c798f29c3540b Mon Sep 17 00:00:00 2001 From: poojajadhav Date: Thu, 5 Jan 2017 18:35:34 +0530 Subject: [PATCH] Don't translate exceptions w/ no message These messages only contain variable references, so there is nothing to translate. Trivial Fix Change-Id: I38ef82f0fa846d3b23f6a6ebb1ab9a1fa69e300d --- nova/exception.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/exception.py b/nova/exception.py index 0a35cfa77893..10877e5fa9a6 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -324,7 +324,7 @@ class ApiVersionsIntersect(Invalid): # Cannot be templated as the error syntax varies. # msg needs to be constructed when raised. class InvalidParameterValue(Invalid): - msg_fmt = _("%(err)s") + msg_fmt = "%(err)s" class InvalidAggregateAction(Invalid):