Merge "Add i18n translation common 5/5"

This commit is contained in:
Jenkins 2017-01-17 21:58:53 +00:00 committed by Gerrit Code Review
commit b5d2d130b3
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ import abc
from oslo_log import log as logging
import six
from trove.common.i18n import _
from trove.common import utils
@ -53,7 +54,7 @@ class Strategy(object):
ns = ns or cls.__strategy_ns__
if ns is None:
raise RuntimeError(
'No namespace provided or __strategy_ns__ unset')
_('No namespace provided and __strategy_ns__ unset'))
LOG.debug('Looking for strategy %s in %s', name, ns)