Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/platforms/python/configuration/filtering/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Suppose that you wish prevent all errors of type `ZeroDivisionError` from being
import sentry_sdk
from sentry_sdk.types import Event, Hint

def my_before_send(event: Event, hint: Hint) -> Event:
def my_before_send(event: Event, hint: Hint) -> Event | None:
# Filter out all ZeroDivisionError events.
# Note that the exception type is available in the hint,
# but we should handle the case where the exception info
Expand Down
Loading