From 1d21359a5aade09956113aa58be2812bd5427d80 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Tue, 21 Nov 2023 11:35:38 +0900 Subject: [PATCH] fix: encoding error --- __init__.py | 2 +- prestartup_script.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/__init__.py b/__init__.py index 30bab3a..816b9c7 100644 --- a/__init__.py +++ b/__init__.py @@ -14,7 +14,7 @@ import concurrent import ssl from urllib.parse import urlparse -version = "V1.1.1" +version = "V1.1.2" print(f"### Loading: ComfyUI-Manager ({version})") diff --git a/prestartup_script.py b/prestartup_script.py index c3409b4..14551cf 100644 --- a/prestartup_script.py +++ b/prestartup_script.py @@ -86,6 +86,7 @@ try: class Logger: def __init__(self, is_stdout): self.is_stdout = is_stdout + self.encoding = "utf-8" def fileno(self): try: @@ -137,10 +138,6 @@ try: def reconfigure(self, *args, **kwargs): pass - - def encoding(): - return "utf-8" - def close_log(): log_file.close()