diff options
| author | Seth M. Larson <SethMichaelLarson@users.noreply.github.com> | 2017-04-03 09:23:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-03 09:23:58 -0500 |
| commit | 90df14e46e98a958ce22b23ad4f8f080a54aade6 (patch) | |
| tree | 7a4bfc33cee2c86629e740b0594f181be6b3ec67 /test/socketpair_helper.py | |
| parent | 094e1529c4db127d973ecb60f7031b25c12d593f (diff) | |
| download | urllib3-90df14e46e98a958ce22b23ad4f8f080a54aade6.tar.gz | |
except NameError:
Diffstat (limited to 'test/socketpair_helper.py')
| -rw-r--r-- | test/socketpair_helper.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/socketpair_helper.py b/test/socketpair_helper.py index 6ce6c8dc..4a3905ff 100644 --- a/test/socketpair_helper.py +++ b/test/socketpair_helper.py @@ -2,10 +2,10 @@ import socket try: _CONNECT_ERROR = (BlockingIOError, InterruptedError) -except: +except NameError: try: _CONNECT_ERROR = (WinError, OSError, socket.error) # noqa: F821 - except: + except NameError: _CONNECT_ERROR = (OSError, socket.error) if hasattr(socket, 'socketpair'): |
