Skip to content

Commit

Permalink
Merge pull request #311 from bitovi/fix/310-bitops-config-not-found
Browse files Browse the repository at this point in the history
Exit with error when bitops.config.yaml not found to fix #310
  • Loading branch information
arm4b authored Oct 12, 2022
2 parents aad1758 + 4ddf0e4 commit 9f79ccf
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 9f79ccf

Please sign in to comment.