Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/1-fetch/github_fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def query_github(args, session):
request_url = f"{base_url}{search_parameters}"

try:
with session.get(request_url) as response:
with session.get(request_url, timeout=30) as response:
response.raise_for_status()
search_data = response.json()
count = search_data["total_count"]
Expand Down
2 changes: 1 addition & 1 deletion scripts/1-fetch/smithsonian_fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def query_smithsonian(args, session):
url = "https://api.si.edu/openaccess/api/v1.0/stats"
params = {"api_key": DATA_GOV_API_KEY}
try:
with session.get(url, params=params) as response:
with session.get(url, params=params, timeout=30) as response:
response.raise_for_status()
data = response.json()["response"]
except requests.HTTPError as e:
Expand Down
Loading