File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -198,12 +198,14 @@ def has_profiling_enabled(hub=None):
198
198
if hub is None :
199
199
hub = sentry_sdk .Hub .current
200
200
201
- if hub .client :
202
- options = hub .client .options
201
+ client = hub .client
202
+
203
+ if client :
204
+ options = client .options
203
205
profiling_enabled = bool (options and options ["_experiments" ].get ("enable_profiling" ))
204
- dynamic_profiling_enabled = hub . client ._get_feature_flag_info ("@@profilingEnabled" )
206
+ dynamic_profiling_enabled = client ._get_feature_flag_info ("@@profilingEnabled" )
205
207
if dynamic_profiling_enabled is not None :
206
- profiling_enabled = dynamic_profiling_enabled
208
+ profiling_enabled = dynamic_profiling_enabled . result
207
209
return profiling_enabled
208
210
return False
209
211
You can’t perform that action at this time.
0 commit comments