Skip to content

Commit be4e45e

Browse files
committed
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
1 parent 370f9ef commit be4e45e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ietf/secr/proceedings/proc_utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ def check_audio_files(group,meeting):
3737
3838
'''
3939
for session in Session.objects.filter(group=group,meeting=meeting,status__in=('sched','schedw')):
40-
timeslot = session.official_scheduledsession().timeslot
40+
try:
41+
timeslot = session.official_scheduledsession().timeslot
42+
except IndexError:
43+
continue
4144
room = timeslot.location.name.lower()
4245
room = room.replace(' ','')
4346
room = room.replace('/','')
@@ -50,6 +53,7 @@ def check_audio_files(group,meeting):
5053
if not doc:
5154
create_recording(session,meeting,group,url)
5255

56+
5357
def create_recording(session,meeting,group,url):
5458
'''
5559
Creates the Document type=recording, setting external_url and creating

0 commit comments

Comments
 (0)