Skip to content

Commit

Permalink
Fix empty fail option
Browse files Browse the repository at this point in the history
  • Loading branch information
xjules committed Dec 23, 2024
1 parent 37555ec commit fb0854e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-data/everest/math_func/jobs/fail_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def main(argv):
arg_parser.add_argument("--fail", type=str)
options, _ = arg_parser.parse_known_args(args=argv)

if options.fail in os.getcwd():
if options.fail is not None and options.fail in os.getcwd():
raise Exception(f"Failing {options.fail} by request!")

time.sleep(1)
Expand Down

0 comments on commit fb0854e

Please sign in to comment.