From 18c5816ab2f5d6e3d423621cd0eee3ac65b21638 Mon Sep 17 00:00:00 2001 From: Everaldo Date: Fri, 15 Nov 2024 16:21:28 -0800 Subject: [PATCH] Update downloader.py --- src/utils/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/downloader.py b/src/utils/downloader.py index c7f9f6c..265299c 100644 --- a/src/utils/downloader.py +++ b/src/utils/downloader.py @@ -154,7 +154,7 @@ def download_mapping(url): headers = { 'User-Agent': 'SmartAPI' } - response = requests.get(url, headers=headers) + response = requests.get(url, headers=headers, timeout=60) response.raise_for_status() return decoder.to_dict(stream=response.content, ext=file_extension(url), ctype=response.headers.get("Content-Type"))