diff options
Diffstat (limited to 'src/webob/client.py')
| -rw-r--r-- | src/webob/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webob/client.py b/src/webob/client.py index 89b9223..6ec7742 100644 --- a/src/webob/client.py +++ b/src/webob/client.py @@ -96,7 +96,7 @@ class SendRequest: except socket.timeout: resp = exc.HTTPGatewayTimeout() return resp(environ, start_response) - except (socket.error, socket.gaierror) as e: + except (OSError, socket.gaierror) as e: if (isinstance(e, socket.error) and e.args[0] == -2) or ( isinstance(e, socket.gaierror) and e.args[0] == 8 ): |
