Skip to content

Commit

Permalink
Minor fix for Field.__repr__ (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
eltbus committed Feb 17, 2024
1 parent 1888ecc commit a437ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multipart/multipart.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def __eq__(self, other: object) -> bool:
return NotImplemented

def __repr__(self) -> str:
if len(self.value) > 97:
if self.value is not None and len(self.value) > 97:
# We get the repr, and then insert three dots before the final
# quote.
v = repr(self.value[:97])[:-1] + "...'"
Expand Down

0 comments on commit a437ebc

Please sign in to comment.