]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Utils: Add missing translation to exception
authorGary Kotton <gkotton@vmware.com>
Thu, 7 Jan 2016 11:29:52 +0000 (03:29 -0800)
committerGary Kotton <gkotton@vmware.com>
Thu, 7 Jan 2016 11:29:52 +0000 (03:29 -0800)
Add a missing translation.

TrivialFix

Change-Id: I2a87704ea12800c377659d59b2ad623fcaf0c802

neutron/common/utils.py

index 7237fd9d85a689ec67e30b03f0c0c2ab664b7b73..7ef4a99c230ff4bb1de33d348bc7096f15ca728c 100644 (file)
@@ -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: