diff --git a/shared/people_import.py b/shared/people_import.py index f98e80f2ca7251a132b52c8daa30c206d7b6c762..43b9dd75dd160d056f3fe39fc51e956b5f1e6394 100644 --- a/shared/people_import.py +++ b/shared/people_import.py @@ -165,6 +165,9 @@ class PeopleGroupImporter: people_instances = [] for person_id, profile in people_profiles.items(): + if profile is None: + continue + person = OctopusPerson.objects.filter(octopus_id=person_id).first() attribute_mapping = {