From fdb682ed9a9384ed8b80bbb8bf9c6dc2a586ea81 Mon Sep 17 00:00:00 2001 From: Jo Sama <jo.sama@usit.uio.no> Date: Mon, 14 Dec 2020 13:40:05 +0100 Subject: [PATCH] Raise HTTP errors when calling post_multi() This allows us to catch more errors that can occour when transferring data to Setra. --- setra_client/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setra_client/client.py b/setra_client/client.py index 3029aa0..941a83f 100644 --- a/setra_client/client.py +++ b/setra_client/client.py @@ -206,7 +206,8 @@ class SetraClient(object): headers = {'Content-Type': 'application/json'} response = self.post(url, data=multidata.json(), - headers=headers) + headers=headers, + return_response=False) return response -- GitLab