From 4c7d1cbd46b9b0e1eb72b94e7074dfd97b52463d Mon Sep 17 00:00:00 2001 From: "Daniel J. Magee" Date: Tue, 16 Apr 2024 16:29:07 -0600 Subject: [PATCH] Add particular exception to satisfy style. --- lib/pavilion/commands/_run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pavilion/commands/_run.py b/lib/pavilion/commands/_run.py index ef8322fb8..244c79b1c 100644 --- a/lib/pavilion/commands/_run.py +++ b/lib/pavilion/commands/_run.py @@ -7,7 +7,7 @@ from pavilion import result from pavilion import schedulers -from pavilion.errors import TestRunError, ResultError +from pavilion.errors import TestRunError, ResultError, TestBuilderError from pavilion.output import fprint from pavilion.status_file import STATES from pavilion.sys_vars import base_classes @@ -78,7 +78,7 @@ def run(self, pav_cfg, args): if not test.build_local: if not test.build(): fprint(sys.stdout, "Test {} build failed.".format(test.full_id)) - raise Exception("Unknown build error. Refer to the kickoff log.") + raise TestBuilderError("Unknown build error.") except Exception: test.status.set( STATES.BUILD_ERROR,