Skip to content

Commit

Permalink
fix file not found
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonFZ committed Oct 25, 2024
1 parent f00845f commit 0ee2275
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions paraffin/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ def get_stage_graph(names, glob=False):


def get_custom_queue():
with pathlib.Path("paraffin.yaml").open() as f:
config = yaml.safe_load(f)

return config.get("queue", {})


try:
with pathlib.Path("paraffin.yaml").open() as f:
config = yaml.safe_load(f)

return config.get("queue", {})

except FileNotFoundError:
return {}
# TODO: what about lists, shutdown, ?

0 comments on commit 0ee2275

Please sign in to comment.