Commit a569757a authored by Michal Čihař's avatar Michal Čihař

Simplify validation - one error case is enough

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent fe837dbc
......@@ -218,11 +218,6 @@ class Translation(models.Model, URLMixin, PercentMixin, LoggerMixin):
)
try:
self.load_store()
except ValueError:
raise ValidationError(
_('Format of %s could not be recognized.') %
self.filename
)
except Exception as error:
raise ValidationError(
_('Failed to parse file %(file)s: %(error)s') % {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment