just handle error when is caused by OSError

This commit is contained in:
Jakub Trllo 2022-03-21 18:59:34 +01:00
parent 22f1a30710
commit 8b572a0d3c

View file

@ -98,6 +98,10 @@ class PypeStreamHandler(logging.StreamHandler):
self.flush()
except (KeyboardInterrupt, SystemExit):
raise
except OSError:
self.handleError(record)
except Exception:
print(repr(record))
self.handleError(record)