Skip to content

Commit

Permalink
Exit with error when bitops.config.yaml not found
Browse files Browse the repository at this point in the history
Fixes #310
  • Loading branch information
arm4b committed Oct 3, 2022
1 parent 5e088f2 commit 4ddf0e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/plugins/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from inspect import Parameter
import yaml
import os
import sys
import subprocess
import re

Expand Down Expand Up @@ -231,6 +232,7 @@ def Get_Config_List(config_file, schema_file):
config_yaml = yaml.load(stream, Loader=yaml.FullLoader)
except FileNotFoundError as e:
logger.error("REQUIRED FILE NOT FOUND: [{}]".format(e.filename))
sys.exit(1)

schema = DefaultMunch.fromDict(schema_yaml, None)
config = DefaultMunch.fromDict(config_yaml, None)
Expand Down

0 comments on commit 4ddf0e4

Please sign in to comment.