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)