URLError

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Thu Mar 20 19:03:32 EDT 2008


On Thu, 20 Mar 2008 10:26:14 -0700, Jim wrote:

> The program is my first and I'm not a programmer so it will take me some
> time to get your recommendation to work. So far the program runs after I
> added code based on your example but the program still aborts and none
> of the code ("Temporary failure, Skip/Halt/try Again?" or "Unknown
> response, boo hiss to you!") in your example is displayed.


Try replacing the line:

except URLError, e:


with:

except urllib2.URLError, e:


and see if that helps.


-- 
Steven



More information about the Python-list mailing list