fix: exception handling for handle_stream

This commit is contained in:
Dr.Lt.Data
2023-11-05 00:44:52 +09:00
parent 59a2ce177d
commit 458f1f6817
2 changed files with 19 additions and 9 deletions

View File

@@ -9,9 +9,13 @@ import re
from tqdm.auto import tqdm
from git.remote import RemoteProgress
def handle_stream(stream, prefix):
for line in stream:
print(prefix, line, end="")
try:
for line in stream:
print(prefix, line, end="")
except Exception:
print("[!] ??? log decoding error ???")
def run_script(cmd, cwd='.'):
@@ -58,7 +62,7 @@ sys.path.append('../..')
from torchvision.datasets.utils import download_url
# ensure .js
print("### Loading: ComfyUI-Manager (V0.38)")
print("### Loading: ComfyUI-Manager (V0.38.1)")
comfy_ui_required_revision = 1240
comfy_ui_revision = "Unknown"