Skip to content

Commit 93025c9

Browse files
committed
also ignore 400
1 parent 10127f8 commit 93025c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

check-urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ def check_url(url):
4444
response = session.head(url, headers=headers, timeout=5, allow_redirects=True)
4545
if response.status_code in [202, 405]:
4646
response = session.get(url, headers=headers, timeout=5, allow_redirects=True)
47-
if response.status_code == 403:
48-
print(f'403 (ignored): {url}')
47+
if response.status_code in [400, 403]:
48+
print(f'{response.status_code} (ignored): {url}')
4949
return None
5050
if response.status_code == 200:
5151
return None

0 commit comments

Comments
 (0)