Skip to content

Commit 93826ae

Browse files
committed
Fixed the case where the urlpattern regexp match gives us an ext which is None.
- Legacy-Id: 6502
1 parent 17f2b80 commit 93826ae

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ietf/meeting/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,8 @@ def iphone_agenda(request, num, name):
433433
context_instance=RequestContext(request))
434434

435435
def agenda(request, num=None, name=None, ext=".html"):
436+
if ext is None:
437+
ext = ".html"
436438
mimetype = {".html":"text/html", ".txt": "text/plain", ".ics":"text/calendar", ".csv":"text/csv"}
437439
meeting = get_meeting(num)
438440
schedule = get_schedule(meeting, name)

0 commit comments

Comments
 (0)