From 24dc581dc3c3bfb12d4a2910609425b4b295d731 Mon Sep 17 00:00:00 2001 From: lky <32677614+lyksdu@users.noreply.github.com> Date: Wed, 27 Nov 2024 04:34:19 +0800 Subject: [PATCH] fix multi add makedirs error (#5786) try to start multiple comfyui server at the same time, and this got error --- app/user_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/user_manager.py b/app/user_manager.py index bb621799..e863b93d 100644 --- a/app/user_manager.py +++ b/app/user_manager.py @@ -36,7 +36,7 @@ class UserManager(): self.settings = AppSettings(self) if not os.path.exists(user_directory): - os.mkdir(user_directory) + os.makedirs(user_directory, exist_ok=True) if not args.multi_user: print("****** User settings have been changed to be stored on the server instead of browser storage. ******") print("****** For multi-user setups add the --multi-user CLI argument to enable multiple user profiles. ******")