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 giampaolo.rodola
Recipients Longpoke, giampaolo.rodola, josiahcarlson
Date 2010-04-29.21:24:39
SpamBayes Score 0.026939837
Marked as misclassified No
Message-id <1272576281.14.0.196088572282.issue8573@psf.upfronthosting.co.za>
In-reply-to
Content
Good catch. I modified your patch a little bit including a catch for OverflowError exception and a last attempt to look up into errno.errorcode:

def _strerror(err):
    try:
        return strerror(err)
    except (ValueError, OverflowError):
        if err in errorcode:
            return errorcode[err]
        return "Unknown error %s" %err

Josiah, what do you think?
History
Date User Action Args
2010-04-29 21:24:41giampaolo.rodolasetrecipients: + giampaolo.rodola, josiahcarlson, Longpoke
2010-04-29 21:24:41giampaolo.rodolasetmessageid: <1272576281.14.0.196088572282.issue8573@psf.upfronthosting.co.za>
2010-04-29 21:24:39giampaolo.rodolalinkissue8573 messages
2010-04-29 21:24:39giampaolo.rodolacreate