Remove unnecessary check
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user