fix a bug discovered with adhoc testing

- Legacy-Id: 9599
This commit is contained in:
Robert Sparks 2015-05-04 15:10:18 +00:00
parent 0ba095e229
commit 3bf1beb030

View file

@ -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: