Skip to content

Commit cb21e02

Browse files
fix: default to empty EvaluationContext when None passed to setter
Signed-off-by: buildingisfun23 <buildingisfun23@users.noreply.github.com>
1 parent 202e548 commit cb21e02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openfeature/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def get_metadata(self) -> ClientMetadata:
9898
return ClientMetadata(domain=self.domain)
9999

100100
def set_evaluation_context(self, context: EvaluationContext) -> None:
101-
self.context = context
101+
self.context = context or EvaluationContext()
102102

103103
def get_evaluation_context(self) -> EvaluationContext:
104104
return self.context

0 commit comments

Comments
 (0)