Skip to content

Commit 60c60a5

Browse files
authored
Remove get_variant example from unleash docs (#12334)
1 parent 105ca18 commit 60c60a5

File tree

1 file changed

+0
-12
lines changed
  • docs/platforms/python/integrations/unleash

1 file changed

+0
-12
lines changed

docs/platforms/python/integrations/unleash/index.mdx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,6 @@ test_flag_enabled = unleash.is_enabled("test-flag")
4646
sentry_sdk.capture_exception(Exception("Something went wrong!"))
4747
```
4848

49-
```python {tabTitle: Python, using get_variant}
50-
import sentry_sdk
51-
from UnleashClient import UnleashClient
52-
53-
unleash = UnleashClient(...) # See Unleash quickstart.
54-
unleash.initialize_client()
55-
56-
test_flag_variant = unleash.get_variant("test-flag")
57-
test_flag_enabled = test_flag_variant["enabled"]
58-
sentry_sdk.capture_exception(Exception("Something went wrong!"))
59-
```
60-
6149
Visit the [Sentry website](https://sentry.io/issues/) and confirm that your error
6250
event has recorded the feature flag "test-flag", and its value is equal to `test_flag_enabled`.
6351

0 commit comments

Comments
 (0)