From 2268036fe05d8e61bd6814748fd051176b9deb36 Mon Sep 17 00:00:00 2001 From: mortael Date: Sun, 31 Dec 2023 19:48:48 +0100 Subject: [PATCH] Update __init__.py --- __init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 4f6b0448..278cc85c 100644 --- a/__init__.py +++ b/__init__.py @@ -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])