From 41a05f70bb26f8b002605a99236676975207aaa2 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Tue, 27 Mar 2018 13:13:49 -0500 Subject: [PATCH] Send email notifications when an unhandled exception happened --- readthedocs/projects/tasks.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/readthedocs/projects/tasks.py b/readthedocs/projects/tasks.py index 3cafbe20fd4..5a95797da49 100644 --- a/readthedocs/projects/tasks.py +++ b/readthedocs/projects/tasks.py @@ -366,6 +366,9 @@ def run(self, pk, version_pk=None, build_pk=None, record=True, ) ) self.setup_env.update_build(BUILD_STATE_FINISHED) + + # Send notifications for unhandled errors + self.send_notifications() return False else: # No exceptions in the setup step, catch unhandled errors in the @@ -391,6 +394,9 @@ def run(self, pk, version_pk=None, build_pk=None, record=True, ) ) self.build_env.update_build(BUILD_STATE_FINISHED) + + # Send notifications for unhandled errors + self.send_notifications() return False return True