eo_conges: catch more XML errors (#80251)
gitea/barbacompta/pipeline/head This commit looks good
Details
gitea/barbacompta/pipeline/head This commit looks good
Details
This commit is contained in:
parent
9b73ea6bc7
commit
1449ce2bc3
|
@ -95,10 +95,10 @@ class WorkersMonthlyReport(MonthMixin, YearMixin, TemplateView):
|
|||
events = calendar.search(event=True, start=self.date, end=self.last_date)
|
||||
except caldav.error.DAVError as e:
|
||||
raise ReportError('Erreur lors de la récupération du calendrier : %s' % e)
|
||||
except XMLSyntaxError:
|
||||
except (XMLSyntaxError, TypeError):
|
||||
try:
|
||||
events = calendar.search(event=True, start=self.date, end=self.last_date)
|
||||
except XMLSyntaxError:
|
||||
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]
|
||||
|
|
Loading…
Reference in New Issue