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.

-- 
Ben Caradoc-Davies <[EMAIL PROTECTED]>
http://wintersun.org/
"Those who deny freedom to others deserve it not for themselves."
- Abraham Lincoln
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to