Skip to content

Commit 2d06e4a

Browse files
Add a timeout to the url requests (#207)
Co-authored-by: Matthew Peveler <[email protected]>
1 parent c7d7009 commit 2d06e4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tldr.py

+1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ def get_page_for_platform(
160160
try:
161161
data = urlopen(
162162
Request(page_url, headers=REQUEST_HEADERS),
163+
timeout=10,
163164
context=URLOPEN_CONTEXT
164165
).read()
165166
data_downloaded = True

0 commit comments

Comments
 (0)