try: raise Exception() except: foo = Exception() raise foo