Ignore Windows stderr flush errors (#2462)

This commit is contained in:
Akhil Narayanan 2026-01-07 21:52:02 +05:30 committed by Dr.Lt.Data
parent f85a12f2a2
commit a4138a89ee

View File

@ -340,10 +340,13 @@ try:
pass pass
with std_log_lock: with std_log_lock:
if self.is_stdout: try:
original_stdout.flush() if self.is_stdout:
else: original_stdout.flush()
original_stderr.flush() else:
original_stderr.flush()
except (OSError, ValueError):
pass
def close(self): def close(self):
self.flush() self.flush()