From f7fa3d9788b13e5aba9f9194c4a30cd09aa34fb2 Mon Sep 17 00:00:00 2001 From: 0880 <0880@bokhary.ir> Date: Wed, 14 Jan 2026 08:08:47 +0000 Subject: [PATCH] Fix fetch retry --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 3b35c83..dea141e 100644 --- a/main.py +++ b/main.py @@ -23,7 +23,7 @@ async def fetch(url, tries=0): print(f"Failed ({tries + 1})...", end="") if tries >= 5: raise RuntimeError(f"Failed to fetch URL {url} after 6 tries") - return fetch(url, tries + 1) + return await fetch(url, tries + 1) except Exception as e: print(f"Unexpected error: {e}") return None