fix: self.last_char 'string index out of range'

This commit is contained in:
dr.lt.data 2024-01-04 16:47:15 +09:00
parent bf25d0208a
commit a396fe2f5a
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ except:
print(f"[WARN] ComfyUI-Manager: Your ComfyUI version is outdated. Please update to the latest version.")
version = [1, 23]
version = [1, 23, 1]
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
print(f"### Loading: ComfyUI-Manager ({version_str})")

View File

@ -200,7 +200,7 @@ try:
else:
log_file.write(f"[{timestamp}] {message}")
log_file.flush()
self.last_char = message[-1]
self.last_char = message if message == '' else message[-1]
with std_log_lock:
if self.is_stdout: