diff --git a/ietf/secr/proceedings/proc_utils.py b/ietf/secr/proceedings/proc_utils.py index 7e248a6c5..3c08387a8 100644 --- a/ietf/secr/proceedings/proc_utils.py +++ b/ietf/secr/proceedings/proc_utils.py @@ -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