Update client/ayon_core/lib/log.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Roy Nieterau 2024-10-31 20:28:59 +01:00 committed by GitHub
parent 9f9c03179a
commit 300e086c8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,7 @@ class LogStreamHandler(logging.StreamHandler):
self.enabled = False
def emit(self, record):
if not self.enabled:
if not self.enabled or self.stream is None:
return
try:
msg = self.format(record)