1
0
Fork 0
mirror of synced 2024-06-02 10:44:40 +12:00

CloudSaves: don't error if the saves directory already exists

This commit is contained in:
loathingKernel 2024-01-02 18:03:41 +02:00
parent fa158bd4aa
commit 339fec2bca

View file

@ -143,7 +143,7 @@ class CloudSaves(QWidget, SideTabContents):
self.compute_save_path_button.setDisabled(False) self.compute_save_path_button.setDisabled(False)
if path and not os.path.exists(path): if path and not os.path.exists(path):
try: try:
os.makedirs(path) os.makedirs(path, exist_ok=True)
except PermissionError: except PermissionError:
self.cloud_save_path_edit.setText("") self.cloud_save_path_edit.setText("")
QMessageBox.warning( QMessageBox.warning(