Skip to content

Commit

Permalink
Replace FileNotFoundError with IOError for py2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jadball committed Feb 21, 2024
1 parent 5c302a8 commit 6de094b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImageD11/nbGui/nb_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def norm(r):

def slurm_submit_and_wait(bash_script_path, wait_time_sec=60):
if not os.path.exists(bash_script_path):
raise FileNotFoundError("Bash script not found!")
raise IOError("Bash script not found!")
submit_command = "sbatch {}".format(bash_script_path)
sbatch_submit_result = subprocess.run(submit_command, capture_output=True, shell=True).stdout.decode("utf-8")

Expand Down

0 comments on commit 6de094b

Please sign in to comment.