From e18299fcd66e229632a736f41cb0dd8f9c4ec84d Mon Sep 17 00:00:00 2001 From: Davte Date: Thu, 11 Jul 2019 18:30:35 +0200 Subject: [PATCH] Unnecessary indentation --- davtelepot/utilities.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/davtelepot/utilities.py b/davtelepot/utilities.py index 97b1acc..b417b27 100644 --- a/davtelepot/utilities.py +++ b/davtelepot/utilities.py @@ -174,13 +174,13 @@ async def async_request(url, type='get', mode='json', encoding='utf-8', """ try: async with aiohttp.ClientSession() as s: - async with ( - s.get(url, timeout=30) - if type == 'get' - else s.post(url, timeout=30, data=kwargs) - ) as r: - result = await r.read() - result = result.decode(encoding) + async with ( + s.get(url, timeout=30) + if type == 'get' + else s.post(url, timeout=30, data=kwargs) + ) as r: + result = await r.read() + result = result.decode(encoding) except Exception as e: logging.error( 'Error making async request to {}:\n{}'.format(