diff --git a/passbook/root/wsgi.py b/passbook/root/wsgi.py index 848d8975f..f9ce13c41 100644 --- a/passbook/root/wsgi.py +++ b/passbook/root/wsgi.py @@ -30,7 +30,7 @@ class WSGILogger: status_codes = [] content_lengths = [] - if environ.get('HTTP_HOST').startswith('kubernetes-healthcheck-host'): + if environ.get('HTTP_HOST', '').startswith('kubernetes-healthcheck-host'): # Don't log kubernetes health/readiness requests return self.__healthcheck(start_response)