mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix loggers without stream
This commit is contained in:
parent
8687965539
commit
a5ef0ffedb
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue