Context processor: Fix crash if plugin returns none

This commit is contained in:
Raphael Michel
2021-01-07 10:29:29 +01:00
parent 9056826b68
commit 72504cd53a

View File

@@ -107,9 +107,9 @@ def _default_context(request):
ctx['organizer_homepage_text'] = request.organizer.settings.get('organizer_homepage_text', as_type=LazyI18nString)
ctx['organizer'] = request.organizer
ctx['html_head'] = "".join(_html_head)
ctx['html_foot'] = "".join(_html_foot)
ctx['html_page_header'] = "".join(_html_page_header)
ctx['html_head'] = "".join(h for h in _html_head if h)
ctx['html_foot'] = "".join(h for h in _html_foot if h)
ctx['html_page_header'] = "".join(h for h in _html_page_header if h)
ctx['footer'] = _footer
ctx['site_url'] = settings.SITE_URL