From ef1dbac1243da85f76b352b381abfa9455776bf3 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 30 Sep 2013 18:32:44 -0700 Subject: [PATCH] HTTPInterface will catch all Requests exceptions now when shutting down. --- homeassistant/httpinterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/httpinterface.py b/homeassistant/httpinterface.py index 0afeaa32054..307f8c20796 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.exceptions.Timeout: + except requests.exceptions.RequestException: pass class RequestHandler(BaseHTTPRequestHandler):