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

Simplify parsing attempts

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 91396b9e
......@@ -1195,17 +1195,8 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
raise ValidationError(_('Template file not found!'))
try:
self.load_template_store()
except ValueError as exc:
self.handle_parse_error(exc)
raise ValidationError(
_(
'Format of translation base file '
'could not be recognized.'
)
)
except Exception as exc:
self.handle_parse_error(exc)
dummy = self.template_store
except ParseError as exc:
raise ValidationError(
_('Failed to parse translation base file: %s') % str(exc)
)
......
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