mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-01-09 05:30:48 +08:00
Ignore Windows stderr flush errors (#2462)
This commit is contained in:
parent
42aabcfec1
commit
1fe90867a2
@ -370,10 +370,13 @@ try:
|
||||
pass
|
||||
|
||||
with std_log_lock:
|
||||
if self.is_stdout:
|
||||
original_stdout.flush()
|
||||
else:
|
||||
original_stderr.flush()
|
||||
try:
|
||||
if self.is_stdout:
|
||||
original_stdout.flush()
|
||||
else:
|
||||
original_stderr.flush()
|
||||
except (OSError, ValueError):
|
||||
pass
|
||||
|
||||
def close(self):
|
||||
self.flush()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user