mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] Log exception too if a key cannot be translated
This commit is contained in:
parent
cbc64af4a5
commit
79a10628a4
1 changed files with 2 additions and 2 deletions
|
@ -202,8 +202,8 @@ class Translator(object):
|
||||||
return _load_key(self.default_locale)
|
return _load_key(self.default_locale)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
logger.warning("unable to retrieve key '%s' for default locale '%s'",
|
logger.exception("unable to retrieve key '%s' for default locale '%s'",
|
||||||
key, self.default_locale)
|
key, self.default_locale)
|
||||||
return key
|
return key
|
||||||
|
|
||||||
def _load_translations(self, locale, overwrite=False):
|
def _load_translations(self, locale, overwrite=False):
|
||||||
|
|
Loading…
Add table
Reference in a new issue