mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-05-04 09:17:50 +08:00
fix: self.last_char 'string index out of range'
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user