From 4e5c05004ce43312ed25a9b58d959122083b3d19 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 6 Mar 2021 18:44:33 +0000 Subject: [PATCH] Check that display name exists --- webapp_calendar.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/webapp_calendar.py b/webapp_calendar.py index 55a2ad010..89da70f61 100644 --- a/webapp_calendar.py +++ b/webapp_calendar.py @@ -150,10 +150,13 @@ def _htmlCalendarDay(personCache: {}, cssCache: {}, translate: {}, # get display name from sending actor if ev.get('sender'): senderActor = ev['sender'] - senderName = \ - '' + \ + dispName = \ getDisplayName(baseDir, senderActor, - personCache) + ': ' + personCache) + if dispName: + senderName = \ + '' + \ + dispName + ': ' if ev.get('name'): eventDescription = senderName + ev['name'].strip() elif ev['type'] == 'Place':