[FIX] core: fix typo for TranslationImporter
fix typo to log correct error message when the imported file is badly formatted X-original-commit: 75606b0f92a26b64ee281792dfa32d47f135f46d Part-of: odoo/odoo#135277
This commit is contained in:
@@ -1261,7 +1261,7 @@ class TranslationImporter:
|
||||
reader = TranslationFileReader(fileobj, fileformat=fileformat)
|
||||
self._load(reader, lang, xmlids)
|
||||
except IOError:
|
||||
iso_lang = get_iso_codes(self.lang)
|
||||
iso_lang = get_iso_codes(lang)
|
||||
filename = '[lang: %s][format: %s]' % (iso_lang or 'new', fileformat)
|
||||
_logger.exception("couldn't read translation file %s", filename)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user