>>> try: ... raise Exception("foo") ... except Exception, ex: ... try: ... raise IOError("bar") ... except IOError: ... pass ... raise ex ... Traceback (most recent call last): File "", line 8, in Exception: foo