diff --git a/test-data/everest/math_func/jobs/fail_simulation.py b/test-data/everest/math_func/jobs/fail_simulation.py index c7412c65bab..f3faa62de2b 100755 --- a/test-data/everest/math_func/jobs/fail_simulation.py +++ b/test-data/everest/math_func/jobs/fail_simulation.py @@ -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)