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 iritkatriel
Recipients amaury.forgeotdarc, catherine, chris.jerdonek, denkoren, ezio.melotti, georg.brandl, iritkatriel, orsenthil, r.david.murray
Date 2021-11-30.20:20:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638303638.34.0.57968795211.issue6471@roundup.psfhosted.org>
In-reply-to
Content
Reproduced on 3.11:

>>> from urllib.request import urlopen
>>> try:
...     urlopen('http://www.pythonfoobarbaz.org')
... except Exception as exc:
...     err = exc
...     print('err:', err)
...     print('repr(err):', repr(err))
...     print('err.errno:', err.errno)
...     print('err.strerror:', err.strerror)
...     print('err.reason:', err.reason)
...     print('err.reason.errno:', err.reason.errno)
...     print('err.reason.strerror:', err.reason.strerror)
... 
err: <urlopen error [Errno 8] nodename nor servname provided, or not known>
repr(err): URLError(gaierror(8, 'nodename nor servname provided, or not known'))
err.errno: None
err.strerror: None
err.reason: [Errno 8] nodename nor servname provided, or not known
err.reason.errno: 8
err.reason.strerror: nodename nor servname provided, or not known
History
Date User Action Args
2021-11-30 20:20:38iritkatrielsetrecipients: + iritkatriel, georg.brandl, amaury.forgeotdarc, orsenthil, ezio.melotti, r.david.murray, chris.jerdonek, catherine, denkoren
2021-11-30 20:20:38iritkatrielsetmessageid: <1638303638.34.0.57968795211.issue6471@roundup.psfhosted.org>
2021-11-30 20:20:38iritkatriellinkissue6471 messages
2021-11-30 20:20:38iritkatrielcreate