Change: exit error to exception

This commit is contained in:
mrjk 2022-02-15 10:41:00 -05:00
parent eeab4f8583
commit a9e97d98c1

View File

@ -247,8 +247,7 @@ class Kheops(GenericInstance):
try:
dict_conf = anyconfig.load(config)
except Exception as err:
log.error("Can't load kheops configuration, got: %s", err)
sys.exit(1)
raise Exception ("Can't load kheops configuration, got: %s", err)
source = f"file:{config}"
elif isinstance(config, dict):
dict_conf = config