diff --git a/biscuit/apps/untis/parse.py b/biscuit/apps/untis/parse.py index be987c621cd6c07265f6fa1e7e45b2ba6d3a7529..1e288895e52ef2c366fb33cdb19006929ddc64bc 100755 --- a/biscuit/apps/untis/parse.py +++ b/biscuit/apps/untis/parse.py @@ -240,7 +240,9 @@ def get_lesson_element_by_id_and_teacher(lesson_id, teacher, hour=None, weekday= t = time print(t) room = None - if t is not None: + if t is not None and len(t.rooms) > i: + print(t.rooms) + print(len(t.rooms)) room = t.rooms[i] if el is not None: