Author nikratio
Recipients nikratio
Date 2013-09-19.03:38:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379561932.98.0.549572888497.issue19044@psf.upfronthosting.co.za>
In-reply-to
Content
I received a bugreport for a Python application that contains the following stacktrace:

>   File "/usr/lib/python3.3/http/client.py", line 1057, in endheaders
>     self._send_output(message_body)
>   File "/usr/lib/python3.3/http/client.py", line 902, in _send_output
>     self.send(msg)
>   File "/usr/lib/python3.3/http/client.py", line 840, in send
>     self.connect()
>   File "/usr/lib/python3.3/http/client.py", line 1194, in connect
>     self.timeout, self.source_address)
>   File "/usr/lib/python3.3/socket.py", line 417, in create_connection
>     for res in getaddrinfo(host, port, 0, SOCK_STREAM):
> OSError: [Errno 0] Error

My guess is that something went wrong with the name resolution, but it seems near impossible to handle this in the application because apparently the exception contains no machine usable useful informaton at all. 


It would be nice if whatever information Python used to determine that the getaddrinfo call failed could be included in the exception, so that it can be properly caught and handled.
History
Date User Action Args
2013-09-19 03:38:53nikratiosetrecipients: + nikratio
2013-09-19 03:38:52nikratiosetmessageid: <1379561932.98.0.549572888497.issue19044@psf.upfronthosting.co.za>
2013-09-19 03:38:52nikratiolinkissue19044 messages
2013-09-19 03:38:52nikratiocreate