Skip to content

Commit 41a05f7

Browse files
committed
Send email notifications when an unhandled exception happened
1 parent ab0b1bb commit 41a05f7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

readthedocs/projects/tasks.py

+6
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,9 @@ def run(self, pk, version_pk=None, build_pk=None, record=True,
366366
)
367367
)
368368
self.setup_env.update_build(BUILD_STATE_FINISHED)
369+
370+
# Send notifications for unhandled errors
371+
self.send_notifications()
369372
return False
370373
else:
371374
# 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,
391394
)
392395
)
393396
self.build_env.update_build(BUILD_STATE_FINISHED)
397+
398+
# Send notifications for unhandled errors
399+
self.send_notifications()
394400
return False
395401

396402
return True

0 commit comments

Comments
 (0)