diff --git a/github/Requester.py b/github/Requester.py index d39715a9..27f871e5 100644 --- a/github/Requester.py +++ b/github/Requester.py @@ -172,10 +172,6 @@ class Requester: def __check(self, status, responseHeaders, output): output = self.__structuredFromJson(output) - # #193: Shouldn't next line be in __requestEncode? (__check is not called on all requests) - # Log frame - self.DEBUG_ON_RESPONSE(status, responseHeaders, output) - if status >= 400: raise self.__createException(status, output) return responseHeaders, output @@ -255,6 +251,8 @@ class Requester: if "x-oauth-scopes" in responseHeaders: self.oauth_scopes = responseHeaders["x-oauth-scopes"].split(", ") + self.DEBUG_ON_RESPONSE(status, responseHeaders, output) + return status, responseHeaders, output def __requestRaw(self, verb, url, requestHeaders, input):