1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Fix: Filter empty entries from journal protocol

This commit is contained in:
Unrud 2023-03-21 01:29:29 +01:00
parent e8e709191a
commit e23f0283b0

View file

@ -116,7 +116,7 @@ class ThreadedStreamHandler(logging.Handler):
def _encode_journal(data): def _encode_journal(data):
msg = b"" msg = b""
for key, value in data.items(): for key, value in data.items():
if key is None: if value is None:
continue continue
key = key.encode() key = key.encode()
value = str(value).encode() value = str(value).encode()