-
Notifications
You must be signed in to change notification settings - Fork 31
Labels
bugSomething isn't workingSomething isn't working
Description
| error_code=e.error_message, |
e.error_message is hardcoded but error_message isn't always available.
File "/usr/local/lib/python3.9/site-packages/open_feature/open_feature_client.py", line 78, in get_string_value
return self.evaluate_flag_details(
File "/usr/local/lib/python3.9/site-packages/open_feature/open_feature_client.py", line 228, in evaluate_flag_details
error_code=e.error_message,
AttributeError: 'ConnectTimeout' object has no attribute 'error_message'
To Recreate
Add a provider with this signature
def get_string_details(
self,
key: str,
default_value: str,
evaluation_context: EvaluationContext = None,
flag_evaluation_options: typing.Any = None,
):
raise("foobar exception")
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working