Message1655

Author amak
Recipients
Date 2007-07-01.19:15:46
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
OK, I've checked in a fix, which will be in 2.2rc2.

When you try to look up and non-existent host, you will get a pythonic exception. The error number corresponds to a newly created symbolic constant.

Jython 2.2rc1 on java1.4.2_13
Type "copyright", "credits" or "license" for more information.
>>> import urllib
>>> urllib.urlopen("http://nonexistent")
Traceback (innermost last):
  File "<console>", line 1, in ?
  File "c:\jython_trunk\jython\dist\Lib\urllib.py", line 73, in urlopen
  File "c:\jython_trunk\jython\dist\Lib\urllib.py", line 178, in open
  File "c:\jython_trunk\jython\dist\Lib\urllib.py", line 292, in open_http
  File "c:\jython_trunk\jython\dist\Lib\httplib.py", line 699, in endheaders
  File "c:\jython_trunk\jython\dist\Lib\httplib.py", line 585, in _send_output
  File "c:\jython_trunk\jython\dist\Lib\httplib.py", line 552, in send
  File "c:\jython_trunk\jython\dist\Lib\httplib.py", line 519, in connect
  File "c:\jython_trunk\jython\dist\Lib\socket.py", line 323, in getaddrinfo
  File "c:\jython_trunk\jython\dist\Lib\socket.py", line 294, in gethostbyname
IOError: [Errno socket error] (20001, 'getaddrinfo failed')
>>> import errno
>>> errno.errorcode[20001]
'EGETADDRINFOFAILED'
>>>
History
Date User Action Args
2008-02-20 17:17:51adminlinkissue1742770 messages
2008-02-20 17:17:51admincreate