Skip to content

Commit ecb0e75

Browse files
committed
Added a guard against trying to list locations which are None in agenda.json (there are socials with a timeslot but no location)
- Legacy-Id: 13482
1 parent b81be04 commit ecb0e75

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/meeting/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,8 @@ def json_agenda(request, num=None ):
960960
sessdict['start'] = asgn.timeslot.utc_start_time().strftime("%Y-%m-%dT%H:%M:%SZ")
961961
sessdict['duration'] = str(asgn.timeslot.duration)
962962
sessdict['location'] = asgn.room_name
963-
locations.add(asgn.timeslot.location)
963+
if asgn.timeslot.location: # Some socials have an assignment but no location
964+
locations.add(asgn.timeslot.location)
964965
if asgn.session.agenda():
965966
sessdict['agenda'] = asgn.session.agenda().href()
966967

0 commit comments

Comments
 (0)