From 0bd2b816a0dd7b66970462928eed62a466c743ca Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Thu, 7 Jan 2016 03:29:52 -0800 Subject: [PATCH] Utils: Add missing translation to exception Add a missing translation. TrivialFix Change-Id: I2a87704ea12800c377659d59b2ad623fcaf0c802 --- neutron/common/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/common/utils.py b/neutron/common/utils.py index 7237fd9d8..7ef4a99c2 100644 --- a/neutron/common/utils.py +++ b/neutron/common/utils.py @@ -92,8 +92,8 @@ class cache_method_results(object): def __call__(self, target_self, *args, **kwargs): if not hasattr(target_self, '_cache'): raise NotImplementedError( - "Instance of class %(module)s.%(class)s must contain _cache " - "attribute" % { + _("Instance of class %(module)s.%(class)s must contain _cache " + "attribute") % { 'module': target_self.__module__, 'class': target_self.__class__.__name__}) if not target_self._cache: -- 2.45.2