Skip to content

Commit

Permalink
Add particular exception to satisfy style.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmageeLANL committed Apr 16, 2024
1 parent 1a01a5d commit 4c7d1cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pavilion/commands/_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4c7d1cb

Please sign in to comment.