URLLIB2 EXCEPTION

Andrew Markebo andrew.markebo at telia.com
Tue Nov 19 15:51:37 EST 2002


[...]
|    File "/usr/local/lib/python2.2/httplib.py", line 231, in _read_status
|      line = self.fp.readline()
| IOError: [Errno 104] Connection reset by peer
|
| I understood that connection can be reseted but I managed this
| exception cases: HTTPError and URLError. I don't know another
| exception that can be generate in urllib2. Besides IOError exception
| doesn't present inside urllib2. What can I do to resolve my problem?
| Where I can found (web site, manual and other) a solution?

But urllib2 uses sockets.. that can throw IOError.. 

    /Andy

-- 
 The eye of the beholder rests on the beauty!




More information about the Python-list mailing list