Skip to content

Commit eee01bb

Browse files
committed
add timeouts on requests
1 parent 5d75265 commit eee01bb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ code/secrets
55
.RData
66
.Rhistory
77
__pycache__/
8+
.pytest_cache/

tests/test_links.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_link(filename, link):
5050
if request_success:
5151
break
5252
try:
53-
r = requests.get(link)
53+
r = requests.get(link, timeout=10)
5454
request_success = True
5555
except Exception:
5656
pass

0 commit comments

Comments
 (0)