404 errors

Tut ciol__opuscic__ at o2.pl.bez.tego
Tue Apr 27 04:46:47 EDT 2004


Tue, 27 Apr 2004 11:00:57 +0800, Derek Fountain wrote:

> Some servers respond with a nicely formatted bit of HTML explaining the
> problem, which is fine for a human, but not for a script. Is there some
> flag or something definitive on the response which says "this is a 404
> error"?

Maybe catch the urllib2.HTTPError?




More information about the Python-list mailing list