Skip to content

Commit 8f46ea0

Browse files
authored
Merge branch 'develop' into auto_update_bunq_context_bunq/sdk_python#65
2 parents 829db29 + a129195 commit 8f46ea0

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
@@ -254,7 +253,7 @@ def _fetch_all_error_message(self, response):
254253
error_dict = converter.json_to_class(dict, response_content_string)
255254

256255
return self._fetch_error_descriptions(error_dict)
257-
except JSONDecodeError:
256+
except ValueError:
258257
return [response_content_string]
259258

260259
def _fetch_error_descriptions(self, error_dict):

0 commit comments

Comments
 (0)