New submission from Denis: On 'connection refused' error urllib creates IOError with wrong arguents: args ('socket error', error(<os-dependent-number>, 'Connection refused'))
It results to dirty hacks in Python code like 'if e.errno == "socket error": ...' instead of traditional 'id e.errno == errno.ECONNREFUSED: ...' ---------- files: pyerror.py messages: 193878 nosy: denkoren priority: normal severity: normal status: open title: urllib raises exception with string in 'errno' attribute type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file31075/pyerror.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18587> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com