mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-17 02:12: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:
|
try:
|
||||||
remote.fetch()
|
remote.fetch()
|
||||||
except Exception as str(e):
|
except Exception as e:
|
||||||
if 'detected dubious' in e:
|
if 'detected dubious' in str(e):
|
||||||
print(f"[ComfyUI-Manager] Try fixing 'dubious repository' error on 'ComfyUI' repository")
|
print(f"[ComfyUI-Manager] Try fixing 'dubious repository' error on 'ComfyUI' repository")
|
||||||
safedir_path = comfy_path.replace('\\', '/')
|
safedir_path = comfy_path.replace('\\', '/')
|
||||||
subprocess.run(['git', 'config', '--global', '--add', 'safe.directory', safedir_path])
|
subprocess.run(['git', 'config', '--global', '--add', 'safe.directory', safedir_path])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user