Skip to content

Commit

Permalink
Adds __str__ to Suberror
Browse files Browse the repository at this point in the history
Resolves #217
  • Loading branch information
bhelx committed Oct 27, 2017
1 parent 9db2d1a commit 4fb2a9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recurly/errors.py
Expand Up @@ -217,6 +217,9 @@ def __init__(self, field, symbol, message):
self.symbol = symbol
self.message = message

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

def __unicode__(self):
return six.u('%s: %s %s') % (self.symbol, self.field, self.message)

Expand Down

0 comments on commit 4fb2a9f

Please sign in to comment.