Not throwing error when checking for empty message.

This commit is contained in:
Roland 2026-06-28 13:23:42 -06:00
parent 627fbf47e3
commit 30bc59c4c3
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680

View file

@ -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