Message407399
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 |
|
Date |
User |
Action |
Args |
2021-11-30 20:20:38 | iritkatriel | set | recipients:
+ iritkatriel, georg.brandl, amaury.forgeotdarc, orsenthil, ezio.melotti, r.david.murray, chris.jerdonek, catherine, denkoren |
2021-11-30 20:20:38 | iritkatriel | set | messageid: <1638303638.34.0.57968795211.issue6471@roundup.psfhosted.org> |
2021-11-30 20:20:38 | iritkatriel | link | issue6471 messages |
2021-11-30 20:20:38 | iritkatriel | create | |
|