From 2f604f30d9c04706fc5f13fdd3674b615679fceb Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Thu, 23 Feb 2017 14:31:24 -0500 Subject: [PATCH] host may be None, account for that --- awx/main/utils/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/utils/handlers.py b/awx/main/utils/handlers.py index 874a5e6046..fe2fb87228 100644 --- a/awx/main/utils/handlers.py +++ b/awx/main/utils/handlers.py @@ -88,7 +88,7 @@ class BaseHTTPSHandler(logging.Handler): self.session.headers.update(headers) def get_http_host(self): - host = self.host + host = self.host or '' if not host.startswith('http'): host = 'http://%s' % self.host if self.port != 80 and self.port is not None: