mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Catching at the wrong timeout exception
This commit is contained in:
parent
1988b5ed79
commit
c7e36e4fc1
@ -76,7 +76,7 @@ class HTTPInterface(threading.Thread):
|
|||||||
# Trigger a fake request to get the server to quit
|
# Trigger a fake request to get the server to quit
|
||||||
try:
|
try:
|
||||||
requests.get("http://127.0.0.1:{}".format(SERVER_PORT), timeout=0.001)
|
requests.get("http://127.0.0.1:{}".format(SERVER_PORT), timeout=0.001)
|
||||||
except requests.TimeOut:
|
except requests.exceptions.Timeout:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class RequestHandler(BaseHTTPRequestHandler):
|
class RequestHandler(BaseHTTPRequestHandler):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user