Skip to content

Commit

Permalink
Handle missing slurm.err file.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed Jul 8, 2021
1 parent 8fd6dbc commit bfbadbd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lab/fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ def __call__(self, src_dir, eval_dir=None, merge=None, filter=None, **kwargs):
combined_props.update(src_props)
logging.info(f"Fetched properties of {len(src_props)} runs.")
else:
slurm_err_content = tools.get_slurm_err_content(src_dir)
try:
slurm_err_content = tools.get_slurm_err_content(src_dir)
except FileNotFoundError:
slurm_err_content = ""

if slurm_err_content:
logging.error("There was output to *-grid-steps/slurm.err")

Expand Down

0 comments on commit bfbadbd

Please sign in to comment.