Skip to content

Commit 098e554

Browse files
authored
Update Adyen/client.py
1 parent 2664359 commit 098e554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adyen/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ def _handle_response(self, url, raw_response, raw_request,
547547
AdyenResult: Result object if successful.
548548
"""
549549

550-
if status_code != 200 and status_code != 201 and status_code != 204:
550+
if status_code >= 200 and status_code <= 204:
551551
response = {}
552552
# If the result can't be parsed into json, most likely is raw html.
553553
# Some response are neither json or raw html, handle them here:

0 commit comments

Comments
 (0)