diff --git a/multipart/multipart.py b/multipart/multipart.py index ea8ccca..170151f 100644 --- a/multipart/multipart.py +++ b/multipart/multipart.py @@ -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] + "...'"