raise_if_recoverable_hypersync_flaky

Documentation for eth_defi.hypersync.hypersync_timestamp.raise_if_recoverable_hypersync_flaky function.

raise_if_recoverable_hypersync_flaky(e, context)

Re-raise a recoverable Hypersync RuntimeError as HypersyncFlaky.

The Rust Hypersync client raises a bare RuntimeError for both server-side rate limiting and near-head pagination glitches. Wrapping them as HypersyncFlaky lets the caller’s retry/backoff loop recover instead of crashing the whole scan. Non-recoverable errors are left untouched so the caller can re-raise them with a bare raise.

Parameters
  • context (str) – Where the error happened, included in the wrapped message, e.g. "stream setup [vault-prices]".

  • e (RuntimeError) –

Return type

None