MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / __check

Method __check

github/Requester.py:859–868  ·  view source on GitHub ↗
(
        self,
        status: int,
        responseHeaders: dict[str, Any],
        output: str,
    )

Source from the content-addressed store, hash-verified

857 return self.data_as_class(headers, data, [item], klass)
858
859 def __check(
860 self,
861 status: int,
862 responseHeaders: dict[str, Any],
863 output: str,
864 ) -> tuple[dict[str, Any], Any]:
865 data = self.__structuredFromJson(output)
866 if status >= 400:
867 raise self.createException(status, responseHeaders, data)
868 return responseHeaders, data
869
870 def __postProcess(
871 self, verb: str, url: str, responseHeaders: dict[str, Any], data: Any

Callers 4

requestJsonAndCheckMethod · 0.95
requestBlobAndCheckMethod · 0.95

Calls 2

__structuredFromJsonMethod · 0.95
createExceptionMethod · 0.95

Tested by

no test coverage detected