Skip to content

Commit

Permalink
Fix values of 0 not getting parsed by options
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyChris committed Aug 4, 2024
1 parent e41cf83 commit c72e768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easy_images/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self, bound=None, string="", /, **options):
value = options.get(key)
if isinstance(value, Variable):
value = value.resolve(context)
if value and value != 0:
if value or value == 0:
parse_func = getattr(self, f"parse_{key}")
setattr(self, key, parse_func(value, **options))
else:
Expand Down

0 comments on commit c72e768

Please sign in to comment.