Skip to content

Commit

Permalink
Update downloader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
everaldorodrigo authored Nov 16, 2024
1 parent 8841695 commit 18c5816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 18c5816

Please sign in to comment.