mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[mod] simplify, called code should never raised
This commit is contained in:
parent
c326ae2c2b
commit
b8b3c8db9f
1 changed files with 1 additions and 6 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue