fix multi add makedirs error (#5786)

try to start multiple comfyui server at the same time, and this got error
This commit is contained in:
lky 2024-11-27 04:34:19 +08:00 committed by GitHub
parent 4c82741b54
commit 24dc581dc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class UserManager():
self.settings = AppSettings(self) self.settings = AppSettings(self)
if not os.path.exists(user_directory): if not os.path.exists(user_directory):
os.mkdir(user_directory) os.makedirs(user_directory, exist_ok=True)
if not args.multi_user: if not args.multi_user:
print("****** User settings have been changed to be stored on the server instead of browser storage. ******") 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. ******") print("****** For multi-user setups add the --multi-user CLI argument to enable multiple user profiles. ******")