On 9/30/06, Steve Holden <[EMAIL PROTECTED]> wrote: > As usual, by adding an additional name after the exception specification: > > try: > self.gses = opener.open(req) > except (urllib2.HTTPError,urllib2.URLError), exdata: > do something with exdata ... > > Pedantically speaking, of course, you aren't catching two exceptions at > once because they don't occur simultaneously: you are writing a > statement that catches either of two exceptions. >
Thanks Steve! I'll think about the two exceptions at once thing. Sounds like a challenge ;-) -Greg -- http://mail.python.org/mailman/listinfo/python-list