code: def standard_exc_info(self):
          
          tb = self.frames[0]
          # the frame will be an actual traceback (or transparent proxy) if
          # we are on pypy or a python implementation with support for tproxy
          if type(tb) is not TracebackType:
              tb = tb.tb
          return self.exc_type, self.exc_value, tb
docs: Standard python exc_info for re-raising