Skip to content

Commit 07dd66e

Browse files
committed
Added a guard against getting the attribute of None in api_set_session_video_url(). Fixes a server 500 for some hackathon sessions.
- Legacy-Id: 15716
1 parent 34d4b5c commit 07dd66e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/meeting/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2214,7 +2214,7 @@ def err(code, text):
22142214
sessions = sessions.filter(group__acronym=acronym)
22152215
if not sessions.exists():
22162216
return err(400, "No sessions found in meeting '%s' for group '%s'" % (number, acronym))
2217-
session_times = [ (s.official_timeslotassignment().timeslot.time, s) for s in sessions ]
2217+
session_times = [ (s.official_timeslotassignment().timeslot.time, s) for s in sessions if s.official_timeslotassignment() ]
22182218
session_times.sort()
22192219
item = request.POST.get('item')
22202220
if not item.isdigit():

0 commit comments

Comments
 (0)