Skip to content

Commit a129195

Browse files
authored
Merge pull request #83 from bunq/fix_import_error_json_decode_bunq/sdk_python#72
Use ValueError isntead of JsonDecodeError. (#72)
2 parents 15237f6 + be51f2a commit a129195

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)