Skip to content

Commit aa14ddb

Browse files
authored
🔧 chore(ecosystem): handle SENTRY-44YY (#95123)
1 parent 8db4943 commit aa14ddb

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

src/sentry/integrations/gitlab/blame.py

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from urllib.parse import quote
99

1010
import orjson
11-
import sentry_sdk
1211

1312
from sentry.integrations.gitlab.utils import (
1413
GitLabApiClientPath,
@@ -102,24 +101,11 @@ def _fetch_file_blame(
102101
extra=extra,
103102
)
104103
else:
105-
try:
106-
response = client.get(
107-
request_path,
108-
params=params,
109-
)
110-
client.set_cache(cache_key, response, 60)
111-
except ApiError as e:
112-
sentry_sdk.set_context(
113-
"fetch_file_blame_ApiError",
114-
{
115-
"file_path": file.path,
116-
"request_path": request_path,
117-
"repo_org_id": file.repo.organization_id,
118-
"repo_integration_id": file.repo.integration_id,
119-
},
120-
)
121-
sentry_sdk.capture_exception(error=e, level="warning")
122-
raise
104+
response = client.get(
105+
request_path,
106+
params=params,
107+
)
108+
client.set_cache(cache_key, response, 60)
123109

124110
if not isinstance(response, SequenceApiResponse):
125111
raise ApiError("Response is not in expected format", code=500)

0 commit comments

Comments
 (0)