CloudSaves: don't error if the saves directory already exists
This commit is contained in:
parent
fa158bd4aa
commit
339fec2bca
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue