From 2aa2e26102c6863d2a2f6885ff684aadd8f425c1 Mon Sep 17 00:00:00 2001 From: SAY-5 Date: Wed, 15 Apr 2026 09:04:49 -0700 Subject: [PATCH] fix(sentry_apps): correct 'occured' -> 'occurred' in SentryAppError comments and message src/sentry/sentry_apps/utils/errors.py had two 'occured' typos: * line 54: comment on SentryAppError ('Represents a user/client error that occured during a Sentry App process') * line 74: SentryAppSentryError.to_public_dict() detail string ('An issue occured during the integration platform process. Sentry error ID: ...') The detail string is rendered to integration-platform users in the API response when an internal Sentry App error occurs, so the spelling is user-visible. Python ast.parse stays clean. --- src/sentry/sentry_apps/utils/errors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sentry/sentry_apps/utils/errors.py b/src/sentry/sentry_apps/utils/errors.py index 35db6ff8cf3c99..c0192f91372bee 100644 --- a/src/sentry/sentry_apps/utils/errors.py +++ b/src/sentry/sentry_apps/utils/errors.py @@ -51,7 +51,7 @@ def __repr__(self) -> str: return f"{type(self).__name__}: message={self.message} status_code={self.status_code} error_type={self.error_type}" -# Represents a user/client error that occured during a Sentry App process +# Represents a user/client error that occurred during a Sentry App process class SentryAppError(SentryAppBaseError): error_type = SentryAppErrorType.CLIENT status_code = 400 @@ -71,7 +71,7 @@ class SentryAppSentryError(SentryAppBaseError): def to_public_dict(self) -> SentryAppPublicErrorBody: error_id = sentry_sdk.capture_exception(self, level="info") return { - "detail": f"An issue occured during the integration platform process. Sentry error ID: {error_id}" + "detail": f"An issue occurred during the integration platform process. Sentry error ID: {error_id}" } def response_from_exception(self) -> Response: