[mod] simplify, called code should never raised

This commit is contained in:
Laurent Peuch 2017-07-26 05:27:11 +02:00
parent c326ae2c2b
commit b8b3c8db9f

View file

@ -206,12 +206,7 @@ class Moulinette18n(object):
- key -- The key to translate - key -- The key to translate
""" """
try:
return self._namespace.translate(key, *args, **kwargs) return self._namespace.translate(key, *args, **kwargs)
except:
logger.exception("cannot translate key '%s' for namespace '%s'",
key, self._current_namespace)
return key
class MoulinetteSignals(object): class MoulinetteSignals(object):