1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

Docs: Update python.md (#1015)

This commit is contained in:
Joe J Collins 2021-10-11 16:49:29 +01:00 committed by GitHub
parent d176028a00
commit 8a74ad9fd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ def custom_fallback(feature_name: str, context: dict) -> bool:
client.is_enabled("My Toggle", fallback_function=custom_fallback)
```
- Must accept the fature name and context as an argument.
- Must accept the feature name and context as an argument.
- Client will evaluate the fallback function only if exception occurs when calling the `is_enabled()` method i.e. feature flag not found or other general exception.
- If both a `default_value` and `fallback_function` are supplied, client will define the default value by `OR`ing the default value and the output of the fallback function.