From b8b3c8db9f5a145717c6b1c57243ed816048ccfb Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 26 Jul 2017 05:27:11 +0200 Subject: [PATCH] [mod] simplify, called code should never raised --- moulinette/core.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/moulinette/core.py b/moulinette/core.py index cc833737..e97f6f01 100644 --- a/moulinette/core.py +++ b/moulinette/core.py @@ -206,12 +206,7 @@ class Moulinette18n(object): - key -- The key to translate """ - try: - return self._namespace.translate(key, *args, **kwargs) - except: - logger.exception("cannot translate key '%s' for namespace '%s'", - key, self._current_namespace) - return key + return self._namespace.translate(key, *args, **kwargs) class MoulinetteSignals(object):