Skip to content

Commit c60e915

Browse files
committed
Fixed an issue with secr.meetings.views.send_notifications() that could occur if a session didn't have a timeslot set.
- Legacy-Id: 18135
1 parent d5558f0 commit c60e915

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/secr/meetings/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def send_notifications(meeting, groups, person):
136136
template = 'meetings/session_schedule_notification.txt'
137137

138138
# easier to populate template from timeslot perspective. assuming one-to-one timeslot-session
139-
items = [ {'session':s, 'timeslot':get_timeslot(s)} for s in sessions ]
139+
items = [ {'session':s, 'timeslot':get_timeslot(s)} for s in sessions if get_timeslot(s) ]
140140
items.sort(key=lambda d: d['timeslot'].time)
141141
for i,d in enumerate(items):
142142
s = d['session']

0 commit comments

Comments
 (0)