We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 829db29 + a129195 commit 8f46ea0Copy full SHA for 8f46ea0
bunq/sdk/client.py
@@ -1,5 +1,4 @@
1
import uuid
2
-from json import JSONDecodeError
3
from urllib.parse import urlencode
4
5
import requests
@@ -254,7 +253,7 @@ def _fetch_all_error_message(self, response):
254
253
error_dict = converter.json_to_class(dict, response_content_string)
255
256
return self._fetch_error_descriptions(error_dict)
257
- except JSONDecodeError:
+ except ValueError:
258
return [response_content_string]
259
260
def _fetch_error_descriptions(self, error_dict):
0 commit comments