diff --git a/Attrap_prefdpt.py b/Attrap_prefdpt.py index 337b46508f827a1bcb77380eddd0185381caca6b..0aa49b69a6fecc37351f6a475653365c98354c37 100644 --- a/Attrap_prefdpt.py +++ b/Attrap_prefdpt.py @@ -200,7 +200,7 @@ class Attrap_prefdpt(Attrap): self.elements.append(raa) else: # Si une date a été trouvée, on regarde s'il faut ajouter l'URL à la liste des pages à parser - if date_is_correct or (date.year == 9999 and widget.follow_link_on_unrecognised_date): + if date_is_correct or ((date is None or date.year == 9999) and widget.follow_link_on_unrecognised_date): self.page_urls_to_parse.append(card['url']) def parse_select_widgets(self, page_url, page_content):