We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e85073a commit 16edfe4Copy full SHA for 16edfe4
BabbleApp/config.py
@@ -83,9 +83,11 @@ def save(self):
83
BabbleConfig(**json.load(settings_file))
84
shutil.copy(CONFIG_FILE_NAME, BACKUP_CONFIG_FILE_NAME)
85
# print("Backed up settings files.") # Comment out because it's too loud.
86
+ except shutil.SameFileError:
87
+ pass
88
except json.JSONDecodeError:
89
# No backup because the saved settings file is broken.
90
pass
91
with open(CONFIG_FILE_NAME, "w") as settings_file:
92
json.dump(obj=self.dict(), fp=settings_file, indent=2)
- print("[INFO] Config Saved Successfully")
93
+ #print("[INFO] Config Saved Successfully")
0 commit comments