Commit 6fc4c1d2 authored by Tom Kunze's avatar Tom Kunze
Browse files

parse_univis: Fix crash if room has no short name

parent d897b8fa
......@@ -125,6 +125,8 @@ def _get_all_events_in_rooms(roomnumbers):
# Find this room's key
roomKey = None
for room in bs.univis.find_all("room", recursive=False):
if room.short is None:
if room.short.text == roomnumber:
roomKey = room["key"]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment