Commit 77c99624 authored by Michal Čihař's avatar Michal Čihař

Report errors from parsing file

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 47d540bf
......@@ -28,6 +28,7 @@ from django.core.cache import cache
from django.utils import timezone
from django.core.urlresolvers import reverse
import os
import sys
import traceback
import codecs
from translate.storage import poheader
......@@ -41,7 +42,7 @@ from weblate.trans.models.unit import Unit
from weblate.trans.models.unitdata import Suggestion
from weblate.trans.signals import vcs_pre_commit, vcs_post_commit
from weblate.trans.util import (
get_site_url, translation_percent, split_plural,
get_site_url, translation_percent, split_plural, report_error,
)
from weblate.accounts.avatar import get_user_display
from weblate.trans.mixins import URLMixin, PercentMixin, LoggerMixin
......@@ -445,10 +446,7 @@ class Translation(models.Model, URLMixin, PercentMixin, LoggerMixin):
try:
self._store = self.load_store()
except Exception as exc:
self.log_warning(
'failed parsing store: %s',
str(exc)
)
report_error(exc, sys.exc_info())
self.subproject.notify_merge_failure(
str(exc),
u''.join(traceback.format_stack()),
......
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