diff --git a/biscuit/apps/untis/util.py b/biscuit/apps/untis/util.py index ac72d93022ba9bbc39cc0347594c0ee454b52000..9bfc367a896f20e617155db33fb37a21a5996793 100644 --- a/biscuit/apps/untis/util.py +++ b/biscuit/apps/untis/util.py @@ -111,6 +111,7 @@ def untis_import_xml(request, untis_xml): except Person.DoesNotExist: messages.error(request, _( 'Failed to import lesson: Teacher %s does not exist.') % teacher_short_name) + continue lesson, created = Lesson.objects.get_or_create(groups=groups, periods=periods, defaults={ 'subject': subject, 'teachers': teachers, 'date_start': date_start, 'date_end': date_end})