Skip to content

Commit b5773a3

Browse files
committed
Extend user creation condition with checking attributes
1 parent ae75331 commit b5773a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configcat_openfeature_provider/provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def __produce_result(
128128

129129
@staticmethod
130130
def __ctx_to_user(ctx: typing.Optional[EvaluationContext]) -> typing.Optional[User]:
131-
if ctx is None:
131+
if ctx is None or (not ctx.targeting_key and not ctx.attributes):
132132
return None
133133

134134
email = ctx.attributes.get("Email")

0 commit comments

Comments
 (0)