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:
parent
99d8e69f0b
commit
c182d4e5e9
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue