Skip to content

Commit

Permalink
Addons: Report addon script errors
Browse files Browse the repository at this point in the history
Otherwise these can easily go unnoticed for quite some time.
  • Loading branch information
nijel committed Jul 23, 2020
1 parent 52f45ac commit 556db08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions weblate/addons/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
from weblate.trans.tasks import perform_update
from weblate.trans.util import get_clean_env
from weblate.utils import messages
from weblate.utils.errors import report_error
from weblate.utils.render import render_template
from weblate.utils.validators import validate_filename

Expand Down Expand Up @@ -231,6 +232,7 @@ def execute_process(self, component, cmd, env=None):
"error": str(err),
}
)
report_error(cause="Addon script error")

def trigger_alerts(self, component):
if self.alerts:
Expand Down

0 comments on commit 556db08

Please sign in to comment.