Skip to content

Commit 8273e14

Browse files
authored
Merge branch 'develop' into increase_python_version_bunq/sdk_php#73
2 parents 2bb0275 + a129195 commit 8273e14

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bunq/sdk/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import uuid
2-
from json import JSONDecodeError
32
from urllib.parse import urlencode
43

54
import requests
@@ -251,7 +250,7 @@ def _fetch_all_error_message(self, response):
251250
error_dict = converter.json_to_class(dict, response_content_string)
252251

253252
return self._fetch_error_descriptions(error_dict)
254-
except JSONDecodeError:
253+
except ValueError:
255254
return [response_content_string]
256255

257256
def _fetch_error_descriptions(self, error_dict):

0 commit comments

Comments
 (0)