Skip to content

Commit

Permalink
raise ListSerializationError with obj in CountableList serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Xie authored and pipermerriam committed Apr 4, 2017
1 parent b014fc9 commit c2d504c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rlp/sedes/lists.py
Expand Up @@ -114,7 +114,7 @@ def serialize(self, obj):
raise ListSerializationError(obj=obj, element_exception=e, index=index)
if self.max_length is not None and len(result) > self.max_length:
raise ListSerializationError('Too many elements ({}, allowed '
'{})'.format(len(result), self.max_length))
'{})'.format(len(result), self.max_length), obj)
return result

def deserialize(self, serial):
Expand Down

0 comments on commit c2d504c

Please sign in to comment.