From ac3c666d32368c96f01304d3a2c050039d42a92f Mon Sep 17 00:00:00 2001 From: arabcoders Date: Thu, 7 May 2026 19:09:31 +0300 Subject: [PATCH] fix: handle TimeoutError in fetch_info function to prevent double wait --- app/features/ytdlp/extractor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/features/ytdlp/extractor.py b/app/features/ytdlp/extractor.py index 55c46d62..003ae84e 100644 --- a/app/features/ytdlp/extractor.py +++ b/app/features/ytdlp/extractor.py @@ -375,6 +375,9 @@ async def fetch_info( timeout=extractor_config.timeout, ) + except TimeoutError: + raise + except Exception as exc: LOG.exception(exc) LOG.warning("extract_info process pool failed, falling back to thread pool url=%s error=%s", url, exc)