diff --git a/workers/dockerfilebuild.py b/workers/dockerfilebuild.py index 858a13863..dbb8d0aa0 100644 --- a/workers/dockerfilebuild.py +++ b/workers/dockerfilebuild.py @@ -545,6 +545,10 @@ class DockerfileBuildWorker(Worker): # Need a separate handler for this so it doesn't get caught by catch all below raise exc + except JobException as exc: + # Need a separate handler for this so it doesn't get caught by catch all below + raise exc + except Exception as exc: sentry.client.captureException() log_appender('error', build_logs.PHASE)