From 67cd0f6e5dcf7ceb8162ae15da752e2d8560d1bc Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 4 Dec 2015 08:22:53 +0000 Subject: [PATCH] Added better error diagnosis to config load --- project/utils/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/project/utils/config.py b/project/utils/config.py index 77d1aeb..88cc8f2 100644 --- a/project/utils/config.py +++ b/project/utils/config.py @@ -18,6 +18,9 @@ def get_config_data(filename): return load(config_file, Loader=Loader) except FileNotFoundError: return {} + except Exception as e: + print("Error:", e) + return {} def write_user_config(refresh_after=False):