From eeab4f858357c0fd7bc6848ba70ad365cc1e0918 Mon Sep 17 00:00:00 2001 From: mrjk Date: Mon, 14 Feb 2022 15:41:08 -0500 Subject: [PATCH] Fix: Loading errors when config file is missing --- kheops/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kheops/app.py b/kheops/app.py index fd90856..f08d0cc 100644 --- a/kheops/app.py +++ b/kheops/app.py @@ -246,8 +246,8 @@ class Kheops(GenericInstance): if isinstance(config, str): try: dict_conf = anyconfig.load(config) - except FileNotFoundError as err: - log.error("Can't find keops configuration file: %s", config) + except Exception as err: + log.error("Can't load kheops configuration, got: %s", err) sys.exit(1) source = f"file:{config}" elif isinstance(config, dict):