mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-16 18:02:58 +08:00
Update __init__.py
This commit is contained in:
parent
7e4b5c4f3f
commit
2268036fe0
@ -1517,8 +1517,8 @@ async def update_comfyui(request):
|
||||
|
||||
try:
|
||||
remote.fetch()
|
||||
except Exception as str(e):
|
||||
if 'detected dubious' in e:
|
||||
except Exception as e:
|
||||
if 'detected dubious' in str(e):
|
||||
print(f"[ComfyUI-Manager] Try fixing 'dubious repository' error on 'ComfyUI' repository")
|
||||
safedir_path = comfy_path.replace('\\', '/')
|
||||
subprocess.run(['git', 'config', '--global', '--add', 'safe.directory', safedir_path])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user