From 667258258294c1acb0785ccddec2b577a77c8d23 Mon Sep 17 00:00:00 2001 From: inso <insomniak.fr@gmaiL.com> Date: Tue, 20 Feb 2018 10:27:11 +0100 Subject: [PATCH] Change timeout from post --- duniterpy/api/bma/api.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/duniterpy/api/bma/api.py b/duniterpy/api/bma/api.py index 3a4356dc..29fd926d 100644 --- a/duniterpy/api/bma/api.py +++ b/duniterpy/api/bma/api.py @@ -183,14 +183,14 @@ class API(object): kwargs['self'] = kwargs.pop('self_') logging.debug("POST : {0}".format(kwargs)) - with aiohttp.Timeout(15): - response = await self.connection_handler.session.post( - self.reverse_url(self.connection_handler.http_scheme, path), - data=kwargs, - headers=self.headers, - proxy=self.connection_handler.proxy - ) - return response + response = await self.connection_handler.session.post( + self.reverse_url(self.connection_handler.http_scheme, path), + data=kwargs, + headers=self.headers, + proxy=self.connection_handler.proxy, + timeout=15 + ) + return response def connect_ws(self, path): """ -- GitLab