Skip to main content

sc_crawler.sentry

Functions:

  • before_send – Do not report intended shutdown errors to sentry.
  • sentry_capture_or_raise – Capture exception with Sentry and continue if configured, otherwise re-raise.

func before_send​

before_send(event, hint)

Do not report intended shutdown errors to sentry.

func sentry_capture_or_raise​

sentry_capture_or_raise(vendor, on_error=None)

Capture exception with Sentry and continue if configured, otherwise re-raise.

Parameters:

  • vendor (Vendor) – Vendor to use for logging and progress bar updates.
  • on_error (Optional[Callable]) – Optional zero-argument callable, invoked before capturing or re-raising (e.g. for logging or state updates).