Skip to content

Commit 292a772

Browse files
authored
Update visitors.py: retry on 404 from Plausible
1 parent 2d80274 commit 292a772

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
@@ -14,7 +14,7 @@ def get_number_of_visitors(language: str, http: PoolManager) -> int:
1414
response = http.request(
1515
'GET',
1616
f'https://plausible.io/docs.python.org/export?{params}',
17-
retries=Retry(status_forcelist=(500, 502)),
17+
retries=Retry(status_forcelist=(404, 500, 502)),
1818
)
1919
info(f'visitors {response.status=} ({language=})')
2020
with (

0 commit comments

Comments
 (0)