diff --git a/src/sentry/issues/ignored.py b/src/sentry/issues/ignored.py index ca16559b41d817..b1a3e683a16288 100644 --- a/src/sentry/issues/ignored.py +++ b/src/sentry/issues/ignored.py @@ -6,6 +6,7 @@ from datetime import datetime, timedelta from typing import Any, TypedDict +from django.contrib.auth.models import AnonymousUser from django.utils import timezone from sentry.db.postgres.transactions import in_test_hide_transaction_boundary @@ -89,7 +90,7 @@ def handle_ignored( group_list: Sequence[Group], status_details: dict[str, Any], acting_user: User | RpcUser, - user: User | RpcUser, + user: User | RpcUser | AnonymousUser, ) -> IgnoredStatusDetails: """ Handle issues that are ignored and create a snooze for them.