Skip to content

Commit

Permalink
Extend user creation condition with checking attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
z4kn4fein committed Aug 8, 2024
1 parent ae75331 commit b5773a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configcat_openfeature_provider/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def __produce_result(

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

email = ctx.attributes.get("Email")
Expand Down

0 comments on commit b5773a3

Please sign in to comment.