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.
1 parent 02f3b43 commit fae9577Copy full SHA for fae9577
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
@@ -251,7 +250,7 @@ def _fetch_all_error_message(self, response):
251
250
error_dict = converter.json_to_class(dict, response_content_string)
252
253
return self._fetch_error_descriptions(error_dict)
254
- except JSONDecodeError:
+ except ValueError:
255
return [response_content_string]
256
257
def _fetch_error_descriptions(self, error_dict):
0 commit comments