File tree Expand file tree Collapse file tree 1 file changed +5
-19
lines changed
src/sentry/integrations/gitlab Expand file tree Collapse file tree 1 file changed +5
-19
lines changed Original file line number Diff line number Diff line change 8
8
from urllib .parse import quote
9
9
10
10
import orjson
11
- import sentry_sdk
12
11
13
12
from sentry .integrations .gitlab .utils import (
14
13
GitLabApiClientPath ,
@@ -102,24 +101,11 @@ def _fetch_file_blame(
102
101
extra = extra ,
103
102
)
104
103
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 )
123
109
124
110
if not isinstance (response , SequenceApiResponse ):
125
111
raise ApiError ("Response is not in expected format" , code = 500 )
You can’t perform that action at this time.
0 commit comments