diff --git a/ietf/secr/meetings/views.py b/ietf/secr/meetings/views.py index 8b0ae1c98..7a66eb622 100644 --- a/ietf/secr/meetings/views.py +++ b/ietf/secr/meetings/views.py @@ -55,7 +55,7 @@ def build_timeslots(meeting,room=None): slots = meeting.timeslot_set.filter(type='session') # Don't do anything if the room is not capable of handling sessions - if not room.session_types.filter(slug='session'): + if room and not room.session_types.filter(slug='session'): return if room: