From bae144d36c178614e722269977dbe37fd5bfd83c Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sat, 23 Mar 2024 12:59:10 +0900 Subject: [PATCH] improve: collapse deprecation message --- __init__.py | 2 +- prestartup_script.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index ab8d62f8..8733998e 100644 --- a/__init__.py +++ b/__init__.py @@ -29,7 +29,7 @@ except: print(f"[WARN] ComfyUI-Manager: Your ComfyUI version is outdated. Please update to the latest version.") -version = [2, 10, 2] +version = [2, 10, 3] version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '') print(f"### Loading: ComfyUI-Manager ({version_str})") diff --git a/prestartup_script.py b/prestartup_script.py index a335f3d0..5b946ab9 100644 --- a/prestartup_script.py +++ b/prestartup_script.py @@ -19,7 +19,7 @@ cm_global.pip_downgrade_blacklist = ['torch', 'torchsde', 'torchvision', 'transf def skip_pip_spam(x): - return 'Requirement already satisfied:' in x + return ('Requirement already satisfied:' in x) or ("DEPRECATION: Loading egg at" in x) message_collapses = [skip_pip_spam]