fix loggers without stream

This commit is contained in:
iLLiCiTiT 2021-08-16 15:57:31 +02:00
parent 8687965539
commit a5ef0ffedb

View file

@ -72,6 +72,8 @@ class PypeStreamHandler(logging.StreamHandler):
msg = self.format(record)
msg = Terminal.log(msg)
stream = self.stream
if stream is None:
return
fs = "%s\n"
# if no unicode support...
if not USE_UNICODE: