Temporary patch for exception when trying to generate proceedings for a session which doesn't have an assigned timeslot in an official schedule. Happens all the time for interims, for example.
- Legacy-Id: 8534
This commit is contained in:
parent
370f9efa56
commit
be4e45e16d
|
@ -37,7 +37,10 @@ def check_audio_files(group,meeting):
|
|||
|
||||
'''
|
||||
for session in Session.objects.filter(group=group,meeting=meeting,status__in=('sched','schedw')):
|
||||
timeslot = session.official_scheduledsession().timeslot
|
||||
try:
|
||||
timeslot = session.official_scheduledsession().timeslot
|
||||
except IndexError:
|
||||
continue
|
||||
room = timeslot.location.name.lower()
|
||||
room = room.replace(' ','')
|
||||
room = room.replace('/','')
|
||||
|
@ -50,6 +53,7 @@ def check_audio_files(group,meeting):
|
|||
if not doc:
|
||||
create_recording(session,meeting,group,url)
|
||||
|
||||
|
||||
def create_recording(session,meeting,group,url):
|
||||
'''
|
||||
Creates the Document type=recording, setting external_url and creating
|
||||
|
|
Loading…
Reference in a new issue