Skip to content

Commit

Permalink
Better handle error in submission script
Browse files Browse the repository at this point in the history
  • Loading branch information
malramsay64 committed Feb 15, 2018
1 parent 9d0a8ce commit b5b665f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/experi/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def run_pbs_commands(command_groups: Iterator[List[str]],
cmd_res = subprocess.check_output(submit_cmd.split(), cwd=str(directory))
except subprocess.CalledProcessError:
logger.error('Submitting job to the queue failed.')
raise subprocess.CalledProcessError
break
prev_jobid = cmd_res.decode().strip()


Expand Down

0 comments on commit b5b665f

Please sign in to comment.