eo_conges: support empty calendars (#82735)
gitea/barbacompta/pipeline/head This commit looks good Details

This commit is contained in:
Pierre Ducroquet 2023-10-23 17:30:11 +02:00
parent 3e898a5a2b
commit fd5072cb9e
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class WorkersMonthlyReport(MonthMixin, YearMixin, TemplateView):
except (XMLSyntaxError, TypeError):
raise ReportError('Erreur lors de la récupération du calendrier : %s' % e)
return [x.vobject_instance.vevent for x in events]
return [x.vobject_instance.vevent for x in events if x.vobject_instance]
def build_workers_data(self):
events = self.get_events()