Added better error diagnosis to config load
This commit is contained in:
parent
1ba735c38b
commit
67cd0f6e5d
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,9 @@ def get_config_data(filename):
|
||||||
return load(config_file, Loader=Loader)
|
return load(config_file, Loader=Loader)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
return {}
|
return {}
|
||||||
|
except Exception as e:
|
||||||
|
print("Error:", e)
|
||||||
|
return {}
|
||||||
|
|
||||||
|
|
||||||
def write_user_config(refresh_after=False):
|
def write_user_config(refresh_after=False):
|
||||||
|
|
Reference in a new issue