mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Not throwing error when checking for empty message.
This commit is contained in:
parent
627fbf47e3
commit
30bc59c4c3
1 changed files with 1 additions and 1 deletions
|
|
@ -8,6 +8,6 @@ class EmptyMessageFilter(logging.Filter):
|
|||
message = record.msg
|
||||
if not message:
|
||||
return False
|
||||
if not message.strip():
|
||||
if isinstance(message, str) and not message.strip():
|
||||
return False
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue