From 31685e4f4164404001e44813094fee0dda24ecc7 Mon Sep 17 00:00:00 2001 From: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> Date: Sun, 10 Mar 2024 21:55:17 +0100 Subject: [PATCH] AAA --- css_inject.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/css_inject.py b/css_inject.py index e046370..1555699 100644 --- a/css_inject.py +++ b/css_inject.py @@ -14,7 +14,7 @@ async def initialize_class_mappings(): setting = store_read("beta_translations") css_translations_url = "https://api.deckthemes.com/beta.json" if (setting == "1" or setting == "true") else "https://api.deckthemes.com/stable.json" - timeout = 10 + timeout = 20 while timeout > 0: try: async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=2)) as session: @@ -25,10 +25,10 @@ async def initialize_class_mappings(): break - await asyncio.sleep(1.5) + await asyncio.sleep(0.5) except Exception as ex: Log(f"Failed to fetch css translations from server: {str(ex)}") - await asyncio.sleep(1.5) + await asyncio.sleep(3) finally: timeout -= 1