Ben Caradoc-Davies wrote:
> James Stroud wrote:
> 
>> except URLError, HTTPException:
> 
> 
> Aieee! This catches only URLError and binds the name HTTPException to 
> the detail of that error. You must write
> 
> except (URLError, HTTPException):
> 
> to catch both.
> 

Oops.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to