Catching at the wrong timeout exception

This commit is contained in:
Paulus Schoutsen 2013-09-29 15:54:54 -07:00
parent 1988b5ed79
commit c7e36e4fc1
1 changed files with 1 additions and 1 deletions

View File

@ -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):