fix #2697
This commit is contained in:
@@ -279,7 +279,7 @@ def read_user_config(path):
|
|||||||
data = f.read()
|
data = f.read()
|
||||||
result = json.loads(data)
|
result = json.loads(data)
|
||||||
except:
|
except:
|
||||||
print_msg("Warning: Cannot read config file.", config_path)
|
print_error("Warning: Cannot read config file.", config_path)
|
||||||
return {}
|
return {}
|
||||||
if not type(result) is dict:
|
if not type(result) is dict:
|
||||||
return {}
|
return {}
|
||||||
|
|||||||
Reference in New Issue
Block a user