1
0
Fork 0
mirror of synced 2024-05-18 19:42:54 +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)
if path and not os.path.exists(path):
try:
os.makedirs(path)
os.makedirs(path, exist_ok=True)
except PermissionError:
self.cloud_save_path_edit.setText("")
QMessageBox.warning(