From 9f00beaed1940919af0dd6e58816fb15900f49a0 Mon Sep 17 00:00:00 2001 From: Andres Hernandez Date: Fri, 3 Jul 2020 19:11:29 -0500 Subject: [PATCH 1/2] adding timeouts --- ivoy/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivoy/client.py b/ivoy/client.py index 71c011b..75de661 100644 --- a/ivoy/client.py +++ b/ivoy/client.py @@ -113,7 +113,7 @@ def get_token( ), ), ) - response = self.session.request('POST', url, auth=auth, json=json_data) + response = self.session.request('POST', url, auth=auth, json=json_data, timeout=60) self._check_response(response) data = response.json() self.id_client = data['data']['idClient'] From eb1f2965b262ef5180cb0caf7a3a8223e9a884e7 Mon Sep 17 00:00:00 2001 From: Andres Hernandez Date: Fri, 3 Jul 2020 19:13:09 -0500 Subject: [PATCH 2/2] format --- ivoy/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ivoy/client.py b/ivoy/client.py index 75de661..fae4250 100644 --- a/ivoy/client.py +++ b/ivoy/client.py @@ -113,7 +113,9 @@ def get_token( ), ), ) - response = self.session.request('POST', url, auth=auth, json=json_data, timeout=60) + response = self.session.request( + 'POST', url, auth=auth, json=json_data, timeout=60 + ) self._check_response(response) data = response.json() self.id_client = data['data']['idClient']