Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Adyen/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def _handle_response(self, url, raw_response, raw_request, status_code, headers,
# If the result can't be parsed into json, most likely is raw html.
# Some response are neither json or raw html, handle them here:
try:
response = json_lib.loads(raw_result)
response = json_lib.loads(raw_response)

self._handle_http_error(url, response, status_code,
headers.get('pspReference'), raw_request, raw_response, headers)
Expand Down Expand Up @@ -455,7 +455,7 @@ def _handle_response(self, url, raw_response, raw_request, status_code, headers,
raise AdyenInvalidRequestError(errorstring)

def _handle_http_error(self, url, response_obj, status_code, psp_ref,
raw_request, raw_response, headers,message):
raw_request, raw_response, headers, message=None):
"""This function handles the non 200 responses from Adyen, raising an
error that should provide more information.

Expand Down