Skip to content

Commit

Permalink
Update providers/openfeature-provider-flagd/src/openfeature/contrib/p…
Browse files Browse the repository at this point in the history
…rovider/flagd/resolvers/process/custom_ops.py

Co-authored-by: Anton Grübel <[email protected]>
Signed-off-by: Simon Schrottner <[email protected]>
  • Loading branch information
aepfli and gruebel authored Jun 26, 2024
1 parent bed926e commit 73374dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def fractional(data: dict, *args: JsonLogicArg) -> typing.Optional[str]:


def __parse_fraction(arg: JsonLogicArg) -> typing.Optional[Fraction]:
if not isinstance(arg, (tuple, list)) or len(arg) == 0:
if not isinstance(arg, (tuple, list)) or not arg:
logger.error("Fractional variant weights must be (str, int) tuple")
return None

Expand Down

0 comments on commit 73374dc

Please sign in to comment.