mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Move the DEBUG_ON_RESPONSE call to Requester.__requestEncode
This commit is contained in:
+2
-4
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user