misc: do not search for home URLs on requests to non-existant tenants (#61459)

This commit is contained in:
Frédéric Péters 2022-02-05 17:19:34 +01:00
parent 2b4062a90a
commit ced3e83112
1 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,9 @@ def a2_processor(request):
def home(request):
if not hasattr(request, 'session'):
# pure WSGIRequest, most probably happening for a request to a non-existant tenant.
return {}
ctx = {}
service = get_service(request)
if service: