code: def _error(self, exc_info):
          
          if self.exc_info:
              if self.traceback:
                  return exc_info
              return exc_info[:2]
          return exc_info[1]
docs: Retrieves the error info