From a9e97d98c18bdbbd85b6ebf5efde656f1f99645f Mon Sep 17 00:00:00 2001 From: mrjk Date: Tue, 15 Feb 2022 10:41:00 -0500 Subject: [PATCH] Change: exit error to exception --- kheops/app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kheops/app.py b/kheops/app.py index f08d0cc..793d10f 100644 --- a/kheops/app.py +++ b/kheops/app.py @@ -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