check if user settings file exists before updating
@@ -183,6 +183,8 @@ def update_settings(min_version, usr_dir_abs):
return settings
usr_settings_path = os.path.join(usr_dir_abs, SETTINGS_FILE)
+ if not os.path.exists(usr_settings_path):
+ return
# not working with a single context and 'w+'
with open(usr_settings_path, "r") as rf:
