Skip to content

Commit f013d1a

Browse files
author
Ryan Fox
committed
Use more appropriate string format types for an exception.
1 parent df97239 commit f013d1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

suitcase/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ def unpack(self, data, **kwargs):
916916
break
917917

918918
if self.num_elements is not None and len(self._value) != self.num_elements:
919-
raise SuitcaseParseError("Expected %r elements but received %r." %
919+
raise SuitcaseParseError("Expected %s elements but received %d." %
920920
(self.num_elements, len(self._value)))
921921

922922
return data

0 commit comments

Comments
 (0)