Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
Allow ConflictError to be cast to unicode.
Browse files Browse the repository at this point in the history
  • Loading branch information
strichter committed Oct 17, 2013
1 parent cb8eb51 commit 462f5d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mongopersist/interfaces.py
Expand Up @@ -60,6 +60,9 @@ def __str__(self):
'new serial %s' % self.new_serial]
return "%s (%s)" % (self.message, ", ".join(extras))

def __unicode__(self):
return unicode(self.__str__())

def __repr__(self):
return '%s: %s' % (self.__class__.__name__, self)

Expand Down

0 comments on commit 462f5d3

Please sign in to comment.