Skip to content

Commit 18c5816

Browse files
Update downloader.py
1 parent 8841695 commit 18c5816

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/downloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def download_mapping(url):
154154
headers = {
155155
'User-Agent': 'SmartAPI'
156156
}
157-
response = requests.get(url, headers=headers)
157+
response = requests.get(url, headers=headers, timeout=60)
158158
response.raise_for_status()
159159

160160
return decoder.to_dict(stream=response.content, ext=file_extension(url), ctype=response.headers.get("Content-Type"))

0 commit comments

Comments
 (0)