code: def _request_exc_message(exc):
      
      if exc.args:
          if isinstance(exc.args[0], Exception):
              org_exc = exc.args[0]
              if isinstance(org_exc, urllib3.exceptions.MaxRetryError):
                  reason_exc = org_exc.reason
                  message = str(reason_exc)
              else:
                  message = str(org_exc.args[0])
          else:
              message = str(exc.args[0])
  
          # Eliminate useless object repr at begin of the message
          m = re.match(r'^(\(<[^>]+>, \'(.*)\'\)|<[^>]+>: (.*))$', message)
          if m:
              message = m.group(2) or m.group(3)
      else:
          message = ""
      return message
docs: Return a reasonable exception message from a
      :exc:`request.exceptions.RequestException` exception.
  
      The approach is to dig deep to the original reason, if the original
      exception is present, skipping irrelevant exceptions such as
      `urllib3.exceptions.MaxRetryError`, and eliminating useless object
      representations such as the connection pool object in
      `urllib3.exceptions.NewConnectionError`.
  
      Parameters:
        exc (:exc:`~request.exceptions.RequestException`): Exception
  
      Returns:
        string: A reasonable exception message from the specified exception.