From: Gary Kotton Date: Thu, 7 Jan 2016 11:29:52 +0000 (-0800) Subject: Utils: Add missing translation to exception X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=0bd2b816a0dd7b66970462928eed62a466c743ca;p=openstack-build%2Fneutron-build.git Utils: Add missing translation to exception Add a missing translation. TrivialFix Change-Id: I2a87704ea12800c377659d59b2ad623fcaf0c802 --- 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: