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

@ -812,7 +812,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)