mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-02-11 05:32:30 +08:00
Log unhandled errors
This commit is contained in:
parent
1d57c1f904
commit
9c5866871c
@ -12,6 +12,7 @@ import re
|
||||
import shutil
|
||||
import git
|
||||
import datetime
|
||||
import logging
|
||||
|
||||
from server import PromptServer
|
||||
import manager_core as core
|
||||
@ -1226,8 +1227,8 @@ async def get_notice(request):
|
||||
markdown_content = f'<P style="text-align: center; color:red; background-color:white; font-weight:bold">Your ComfyUI isn\'t git repo.</P>' + markdown_content
|
||||
elif core.comfy_ui_required_commit_datetime.date() > core.comfy_ui_commit_datetime.date():
|
||||
markdown_content = f'<P style="text-align: center; color:red; background-color:white; font-weight:bold">Your ComfyUI is too OUTDATED!!!</P>' + markdown_content
|
||||
except:
|
||||
pass
|
||||
except Exception as error:
|
||||
logging.warning("Unexpected error when checking ComfyUI version via git.")
|
||||
|
||||
return web.Response(text=markdown_content, status=200)
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user