Fix erreur liste à None

This commit is contained in:
Jean-Marie Favreau 2025-03-05 15:52:30 +01:00
parent 8f752ae7f9
commit 679f67f3e7

View File

@ -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