How to Handle exceptions using OpenerDirector

swarna pulavarty swarnapsv at
Tue Sep 20 19:14:09 CEST 2005

Hi all, 
 I am trying to figure out a way to handle exceptions for error code 4xx , and 5xx 's . I came to know that these can be handled using OpenerDirector class and urllib2 module in Python. I could'nt find the right syntax or examples of how to use these Handlers.
Any help is greatly appreciated !

 Yahoo! India Matrimony: Find your partner now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list