diff --git a/duniterpy/api/bma/api.py b/duniterpy/api/bma/api.py index 3a4356dc567df293999aee6fdc07309fe9bc90de..29fd926d43fb4b29d4ee2d1b6a692c502b5e50f8 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): """