Added a guard against crashing because of missing timeslot location or time in check_audio_files(), which is called by create_proceedings() after changes to meeting materials. Fixes issue 1604.

- Legacy-Id: 9085
This commit is contained in:
Henrik Levkowetz 2015-02-13 12:09:56 +00:00
parent 9209be4656
commit a85725e146

View file

@ -41,6 +41,8 @@ def check_audio_files(group,meeting):
timeslot = session.official_scheduledsession().timeslot
except IndexError:
continue
if not (timeslot.location and timeslot.time):
continue
room = timeslot.location.name.lower()
room = room.replace(' ','')
room = room.replace('/','')