1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Remove unnecessary check

This commit is contained in:
Unrud 2023-03-22 10:23:56 +01:00 committed by Unrud
parent 390240c35a
commit 77626e5aed

View file

@ -167,8 +167,7 @@ class ThreadedStreamHandler(logging.Handler):
return return
msg = self.format(record) msg = self.format(record)
stream.write(msg + self.terminator) stream.write(msg + self.terminator)
if hasattr(stream, "flush"): stream.flush()
stream.flush()
except Exception: except Exception:
self.handleError(record) self.handleError(record)