perf: csv upload (#5894)

perf: 修改翻译

Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
fit2bot
2021-04-08 10:11:46 +08:00
committed by GitHub
parent b4ef7bef55
commit 32fe8f674c
3 changed files with 103 additions and 74 deletions

View File

@@ -143,5 +143,5 @@ class BaseFileParser(BaseParser):
return data
except Exception as e:
logger.error(e, exc_info=True)
raise ParseError('Parse error! ({})'.format(self.media_type))
raise ParseError(_('Parse file error: {}').format(e))