Skip to content

Commit ccb9074

Browse files
committed
Temporary fix for a potential server 500. Expecting a better fix from Ryan.
- Legacy-Id: 15959
1 parent b19370b commit ccb9074

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ietf/secr/telechat/views.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,10 @@ def doc_navigate(request, date, name, nav):
329329
target = name
330330

331331
docs = get_doc_list(agenda)
332-
index = docs.index(doc)
332+
if doc in docs:
333+
index = docs.index(doc)
334+
else:
335+
return redirect('ietf.secr.telechat.views.doc_detail', date=date, name=name)
333336

334337
if nav == 'next' and index < len(docs) - 1:
335338
target = docs[index + 1].name

0 commit comments

Comments
 (0)