Skip to content

Commit

Permalink
feat: retry on parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Oct 3, 2022
1 parent 1eb591c commit 572a561
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eth_retry/eth_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def auto_retry(func: Callable[...,Any]) -> Callable[...,Any]:
- Max rate limit reached
- please use API Key for higher rate limit
- execution aborted (timeout = 5s)
- parse error
On repeat errors, will retry in increasing intervals.
'''
Expand Down Expand Up @@ -88,6 +89,7 @@ def should_retry(e: Exception, failures: int) -> bool:
'execution aborted (timeout = 5s)',
'max retries exceeded with url',
'temporary failure in name resolution',
'parse error',

# From block explorer while interacting with api. Just retry.
'max rate limit reached',
Expand Down

0 comments on commit 572a561

Please sign in to comment.