Skip to content

Commit c182d4e

Browse files
committed
Return empty string instead of None in case an agenda file isn't read
correctly, fixes annoying problem with the test crawler - Legacy-Id: 6055
1 parent 99d8e69 commit c182d4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/meeting/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def session_agenda(request, num, session):
260260

261261
if d:
262262
agenda = d[0]
263-
content = read_agenda_file(num, agenda)
263+
content = read_agenda_file(num, agenda) or ""
264264
_, ext = os.path.splitext(agenda.external_url)
265265
ext = ext.lstrip(".").lower()
266266

0 commit comments

Comments
 (0)