From 679f67f3e7492b6631af9c175f15dde784949809 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Wed, 5 Mar 2025 15:52:30 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20erreur=20liste=20=C3=A0=20None?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agenda_culturel/models.py b/src/agenda_culturel/models.py index 7fa4926..1d90539 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -1988,7 +1988,7 @@ class Event(models.Model): # check if the event has already be imported (using uuid) same_events = event.find_same_events_by_uuid() - if len(same_events) != 0: + if same_events is not None and len(same_events) != 0: # check if one event has been imported and not modified in this list same_imported = Event.find_last_pure_import(same_events) pure = True