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
This commit is contained in:
Ole Laursen 2013-08-14 15:48:17 +00:00
parent 99d8e69f0b
commit c182d4e5e9

View file

@ -260,7 +260,7 @@ def session_agenda(request, num, session):
if d:
agenda = d[0]
content = read_agenda_file(num, agenda)
content = read_agenda_file(num, agenda) or ""
_, ext = os.path.splitext(agenda.external_url)
ext = ext.lstrip(".").lower()