Skip to content

Commit

Permalink
Fixes margintype check from is to equals
Browse files Browse the repository at this point in the history
  • Loading branch information
stumpylog committed Sep 30, 2024
1 parent a98cc63 commit 7bb039e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gotenberg_client/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def to_form(self, name: str) -> Dict[str, str]:
The margin value is formatted as a string with the unit appended.
"""

if self.unit is MarginUnitType.Undefined:
if self.unit == MarginUnitType.Undefined:
return optional_to_form(self.value, name)
else:
return optional_to_form(f"{self.value}{self.unit}", name)
Expand Down

0 comments on commit 7bb039e

Please sign in to comment.