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
RuntimeErrorasHypersyncFlaky.The Rust Hypersync client raises a bare
RuntimeErrorfor both server-side rate limiting and near-head pagination glitches. Wrapping them asHypersyncFlakylets 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 bareraise.- Parameters
context (str) – Where the error happened, included in the wrapped message, e.g.
"stream setup [vault-prices]".e (RuntimeError) –
- Return type
None