Skip to content

Commit

Permalink
Trim exception when getting string representation of Error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell Jones committed Apr 25, 2016
1 parent 1831da2 commit 0899148
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions flanker/mime/message/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ class MimeError(Exception):

class DecodingError(MimeError):
"""Thrown when there is an encoding error."""
pass

def __str__(self):
return self.message[:256]


class EncodingError(MimeError):
"""Thrown when there is an decoding error."""
pass

def __str__(self):
return self.message[:256]
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


setup(name='flanker',
version='0.4.38',
version='0.4.39',
description='Mailgun Parsing Tools',
long_description=open('README.rst').read(),
classifiers=[],
Expand Down

0 comments on commit 0899148

Please sign in to comment.