Skip to content

Commit 869dc17

Browse files
committed
Raise timeout for getting number of visitors
It used to break the CI.
1 parent 5c689ae commit 869dc17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visitors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def get_number_of_visitors(language: str) -> int:
1010
param = urllib.parse.urlencode(
1111
{'filters': f'[["contains","event:page",["/{language}/"]]]'}
1212
)
13-
r = requests.get(f'https://plausible.io/docs.python.org/export?{param}', timeout=10)
13+
r = requests.get(f'https://plausible.io/docs.python.org/export?{param}', timeout=20)
1414
with (
1515
zipfile.ZipFile(io.BytesIO(r.content), 'r') as z,
1616
z.open('visitors.csv') as csv_file,

0 commit comments

Comments
 (0)