We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 214eb2a commit 84009e2Copy full SHA for 84009e2
scripts/check-broken-links-md.py
@@ -37,11 +37,16 @@ def process_log() -> None:
37
for line in log_err.splitlines():
38
line = line.strip() # noqa: PLW2901
39
# Check if the line starts with '('
40
- if line.startswith("("):
41
- # Extract the URL using regex
42
- for exception_url in exception_urls:
43
- if exception_url not in line:
44
- flagged_errors.append(line)
+ if not line.startswith("("):
+ continue
+
+ if line.endswith("429)"):
+ # Too Many Requests http error
45
46
+ # Extract the URL using regex
47
+ for exception_url in exception_urls:
48
+ if exception_url not in line:
49
+ flagged_errors.append(line)
50
51
# Print flagged errors
52
if not flagged_errors:
0 commit comments