def _convert_unexpected_exception(self, e): from pypy.interpreter import error operr = error.get_converted_unexpected_exception(self.space, e) pytraceback.record_application_traceback(self.space, operr, self, self.last_instr) raise operr
def _convert_unexpected_exception(self, e): from pypy.interpreter import error operr = error.get_converted_unexpected_exception(self.space, e) pytraceback.record_application_traceback( self.space, operr, self, self.last_instr) raise operr
def handle_exception(self, space, e): try: if not we_are_translated(): raise raise e except OperationError: raise except Exception as e: # general fall-back from pypy.interpreter import error raise error.get_converted_unexpected_exception(space, e)