➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author denkoren
Recipients denkoren
Date 2013-07-29.16:01:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
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: ...'
History
Date User Action Args
2013-07-29 16:01:57denkorensetrecipients: + denkoren
2013-07-29 16:01:57denkorensetmessageid: <[email protected]>
2013-07-29 16:01:57denkorenlinkissue18587 messages
2013-07-29 16:01:57denkorencreate