From 2020a840a8b22ca0e2d824778e1c053812a3282b Mon Sep 17 00:00:00 2001 From: andvikt Date: Fri, 29 Oct 2021 09:13:48 +0300 Subject: [PATCH] timeouts --- custom_components/mega/hub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/mega/hub.py b/custom_components/mega/hub.py index 59f5d8c..69b5fe3 100644 --- a/custom_components/mega/hub.py +++ b/custom_components/mega/hub.py @@ -310,8 +310,8 @@ class MegaD: return ret except asyncio.TimeoutError: self.lg.warning(f'timeout while requesting {url}') - raise - # await asyncio.sleep(1) + # raise + await asyncio.sleep(1) raise asyncio.TimeoutError('after 3 tries') async def save(self):