diff --git a/homeassistant/httpinterface.py b/homeassistant/httpinterface.py index 79cdb5b5077..5dde42e153a 100644 --- a/homeassistant/httpinterface.py +++ b/homeassistant/httpinterface.py @@ -76,7 +76,7 @@ class HTTPInterface(threading.Thread): # Trigger a fake request to get the server to quit try: requests.get("http://127.0.0.1:{}".format(SERVER_PORT), timeout=0.001) - except requests.TimeOut: + except requests.exceptions.Timeout: pass class RequestHandler(BaseHTTPRequestHandler):