Skip to content

Commit f4e1434

Browse files
fix "too many requests" case
1 parent 7630f85 commit f4e1434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

planemo/lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def validate_url(url, lint_ctx, user_agent=None):
157157
if r is not None and r.status_code == 429:
158158
# too many requests
159159
pass
160-
if r is not None and r.status_code in [403, 503] and "cloudflare" in r.text:
160+
elif r is not None and r.status_code in [403, 503] and "cloudflare" in r.text:
161161
# CloudFlare protection block
162162
pass
163163
else:

0 commit comments

Comments
 (0)