Compare commits

...

2 Commits

Author SHA1 Message Date
Akhil Narayanan
bf1455c361
Merge 600e44e84f into 1a20656448 2026-01-08 16:49:05 -08:00
Akhil Narayanan
600e44e84f
Ignore Windows stderr flush errors 2026-01-04 23:42:53 +05:30

View File

@ -32,7 +32,10 @@ class LogInterceptor(io.TextIOWrapper):
super().write(data)
def flush(self):
super().flush()
try:
super().flush()
except (OSError, ValueError):
pass
for cb in self._flush_callbacks:
cb(self._logs_since_flush)
self._logs_since_flush = []