In socketmodule, socket.error is currently just a plain old error (derived only from Exception). Looks to me like it should be an IOError. Do you agree? line 2379 of socketmodule.c: d = PyModule_GetDict(m); PySocket_Error = PyErr_NewException("socket.error", NULL, NULL); if (PySocket_Error == NULL) ...just change that first NULL to PyExc_IOError. -- ?!ng "All models are wrong; some models are useful." -- George Box
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4