How to Catch 2 Exceptions at once?

Gregory Piñero gregpinero at
Sun Oct 1 03:32:57 CEST 2006

How can I catch 2 exceptions at once for example:

            self.gses =
        except (urllib2.HTTPError,urllib2.URLError):
            do something..

Seems to work, but how do I also get information about the error?

Gregory Piñero
Chief Innovation Officer
Blended Technologies

More information about the Python-list mailing list