Skip to content

Commit

Permalink
chore: cleanup ugly logs
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Jan 9, 2024
1 parent 47a16ca commit 5f8f09e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dank_mids/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def should_retry(self, e: Exception) -> bool:
elif any(err in f"{e}".lower() for err in constants.RETRY_ERRS):
# TODO: use these exceptions to optimize for the user's node
logger.debug('Dank too loud. Bisecting batch and retrying.')
elif isinstance(e, BadResponse) and ('invalid request' in f"{e}" or 'Parse error' in f"{e}"):
elif isinstance(e, BadResponse) and ('invalid request' in f"{e}" or 'Parse error' in f"{e}" or 'invalid opcode: SHR' in f"{e}"):
pass
elif "error processing call Revert" not in f"{e}" and "429" not in f"{e}" and "resource not found" not in f"{e}":
logger.warning(f"unexpected {e.__class__.__name__}: {e}")
Expand Down

0 comments on commit 5f8f09e

Please sign in to comment.