Skip to content

Commit cf8dbbf

Browse files
committed
Fix error handling
1 parent ec0a35b commit cf8dbbf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

finterion/services.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ def handle_response(response):
2323
elif response.status_code == 400:
2424
logger.error("Service call failed")
2525
data = response.json()
26-
logger.error(data)
26+
27+
if isinstance(data, str):
28+
data = json.loads(data)
2729

2830
if "message" in data:
2931
raise ClientException(data["message"])

version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = (0, 7, 5, 'alpha', 0)
1+
VERSION = (0, 7, 6, 'alpha', 0)
22

33

44
def get_version(version=None):

0 commit comments

Comments
 (0)