Skip to content

Commit

Permalink
feat: too many requests (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Jun 6, 2022
1 parent 803063c commit f669718
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eth_retry/eth_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ def should_retry(e: Exception, failures: int) -> bool:

# Occurs occasionally on AVAX when node is slow to sync. Just retry.
'after last accepted block',

# The standard Moralis rate limiting message. Just retry.
'too many requests'
)
if any(err in str(e).lower() for err in retry_on_errs):
return True
Expand Down

0 comments on commit f669718

Please sign in to comment.