Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Apr 3, 2024
1 parent 3d3f6de commit 202b8f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/retrieve_domains.sh
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ search_google() {
if grep -qF 'rateLimitExceeded' <<< "$page_results"; then
# Stop all searches if second key is also rate limited
if [[ "$search_id" == "$GOOGLE_SEARCH_ID_2" ]]; then
local -r rate_limited=true
break
readonly rate_limited=true
return
fi

printf "\n\e[1mGoogle Search rate limited. Switching API keys.\e[0m\n"
Expand Down

0 comments on commit 202b8f9

Please sign in to comment.