From 339fec2bcac215c839cb7272d52c2b3e8a5e49e3 Mon Sep 17 00:00:00 2001 From: loathingKernel <142770+loathingKernel@users.noreply.github.com> Date: Tue, 2 Jan 2024 18:03:41 +0200 Subject: [PATCH] CloudSaves: don't error if the saves directory already exists --- rare/components/tabs/games/game_info/cloud_saves.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rare/components/tabs/games/game_info/cloud_saves.py b/rare/components/tabs/games/game_info/cloud_saves.py index 87143f71..7006eb6a 100644 --- a/rare/components/tabs/games/game_info/cloud_saves.py +++ b/rare/components/tabs/games/game_info/cloud_saves.py @@ -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(