mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-17 10:22:59 +08:00
fix: robust cm_global
This commit is contained in:
parent
e0b762baca
commit
a9162791b3
@ -301,6 +301,7 @@ def print_comfyui_version():
|
|||||||
comfy_ui_commit_date = repo.head.commit.committed_datetime.date()
|
comfy_ui_commit_date = repo.head.commit.committed_datetime.date()
|
||||||
|
|
||||||
# process on_revision_detected -->
|
# process on_revision_detected -->
|
||||||
|
if 'cm.on_revision_detected_handler' in cm_global.variables:
|
||||||
for k, f in cm_global.variables['cm.on_revision_detected_handler']:
|
for k, f in cm_global.variables['cm.on_revision_detected_handler']:
|
||||||
try:
|
try:
|
||||||
f(comfy_ui_revision)
|
f(comfy_ui_revision)
|
||||||
@ -309,6 +310,8 @@ def print_comfyui_version():
|
|||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|
||||||
del cm_global.variables['cm.on_revision_detected_handler']
|
del cm_global.variables['cm.on_revision_detected_handler']
|
||||||
|
else:
|
||||||
|
print(f"[ComfyUI-Manager] Some features are restricted due to your ComfyUI being outdated.")
|
||||||
# <--
|
# <--
|
||||||
|
|
||||||
if current_branch == "master":
|
if current_branch == "master":
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user