From 27d44f691853c7cd7d7348e5520eaf73f72d7739 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sun, 20 Oct 2024 05:54:58 +0200 Subject: [PATCH] Fix deux erreurs --- src/agenda_culturel/import_tasks/extractor_ical.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agenda_culturel/import_tasks/extractor_ical.py b/src/agenda_culturel/import_tasks/extractor_ical.py index 1eedd18..9b43716 100644 --- a/src/agenda_culturel/import_tasks/extractor_ical.py +++ b/src/agenda_culturel/import_tasks/extractor_ical.py @@ -91,7 +91,7 @@ class ICALExtractor(Extractor): end_day = end_day + timedelta(days=-1) location = self.get_item_from_vevent(event, "LOCATION") - if location.replace(" ", "") == "": + if (not location is None) and location.replace(" ", "") == "": location = None description = self.get_item_from_vevent(event, "DESCRIPTION") @@ -127,7 +127,7 @@ class ICALExtractor(Extractor): ) # possible limitation: if the ordering is not original then related - tags = None + tags = [] last_modified = self.get_item_from_vevent(event, "LAST-MODIFIED", raw=True)