diff --git a/adafruit_requests.py b/adafruit_requests.py index 8abd58b..f10a342 100644 --- a/adafruit_requests.py +++ b/adafruit_requests.py @@ -560,7 +560,7 @@ def request( ok = True try: self._send_request(socket, host, method, path, headers, data, json) - except _SendFailed: + except (_SendFailed, OSError): ok = False if ok: # Read the H of "HTTP/1.1" to make sure the socket is alive. send can appear to work