Skip to content

Commit 671ad54

Browse files
committed
Work around mixed return types for get_meeting_schedule()
- Legacy-Id: 14643
1 parent 1825406 commit 671ad54

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

ietf/meeting/ajax.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,13 @@ def assignments_get(request, num, schedule):
486486

487487
# this returns the list of scheduled sessions for the given named agenda
488488
def assignments_json(request, num, owner, name):
489-
meeting, person, schedule = get_meeting_schedule(num, owner, name)
489+
info = get_meeting_schedule(num, owner, name)
490+
# The return values from get_meeting_schedule() are silly, in that it
491+
# is a tuple for non-error return, but a HTTPResponse when error, but
492+
# work around that for the moment
493+
if isinstance(info, HttpResponse):
494+
return info
495+
meeting, person, schedule = info
490496

491497
if request.method == 'GET':
492498
return assignments_get(request, meeting, schedule)

0 commit comments

Comments
 (0)