File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -214,12 +214,21 @@ check_url() {
214214 fi
215215 fi
216216 else
217- if [[ " $is_external " == " true" ]]; then
218- echo -e " ${RED} ✗${NC} $url ($status_code ) ${BLUE} [external]${NC} "
217+ # Special handling: ignore HTTP 429 (Too Many Requests) for every.org links
218+ if [[ " $status_code " == " 429" && " $url " =~ every\. org ]]; then
219+ if [[ " $is_external " == " true" ]]; then
220+ echo -e " ${YELLOW} ⚠${NC} $url ($status_code - rate limited, ignoring) ${BLUE} [external]${NC} "
221+ else
222+ echo -e " ${YELLOW} ⚠${NC} $url ($status_code - rate limited, ignoring)"
223+ fi
219224 else
220- echo -e " ${RED} ✗${NC} $url ($status_code )"
225+ if [[ " $is_external " == " true" ]]; then
226+ echo -e " ${RED} ✗${NC} $url ($status_code ) ${BLUE} [external]${NC} "
227+ else
228+ echo -e " ${RED} ✗${NC} $url ($status_code )"
229+ fi
230+ echo " $url - HTTP $status_code " >> " $ERRORS_FILE "
221231 fi
222- echo " $url - HTTP $status_code " >> " $ERRORS_FILE "
223232 fi
224233 else
225234 if [[ " $is_external " == " true" ]]; then
You can’t perform that action at this time.
0 commit comments