Improved isocalendar() function compatibility.

This commit is contained in:
SebastianObi 2023-06-06 13:23:31 +02:00
parent 9c08b31603
commit 7f167666ed
19 changed files with 76 additions and 14 deletions

View file

@ -99,6 +99,7 @@ The full documentation is not yet available. Due to lack of time I can also not
Restart=always
RestartSec=3
User=root
Group=root
ExecStart=/root/lxmf_echo.py
[Install]
WantedBy=multi-user.target

View file

@ -634,7 +634,12 @@ class lxmf_announce_callback:
if len(app_data) == 0:
return
log("LXMF - Received an announce from " + RNS.prettyhexrep(destination_hash) + ": " + app_data.decode("utf-8"), LOG_INFO)
try:
app_data = app_data.decode("utf-8").strip()
except:
return
log("LXMF - Received an announce from " + RNS.prettyhexrep(destination_hash) + ": " + app_data, LOG_INFO)