Use the repr() of the exception instead of str()
This commit is contained in:
parent
3170e35b31
commit
21a50cf961
@ -92,7 +92,7 @@ class ConfigErrorDesc:
|
|||||||
traceback = attr.ib(None)
|
traceback = attr.ib(None)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return '{}: {}'.format(self.text, self.exception)
|
return '{}: {} '.format(self.text, repr(self.exception))
|
||||||
|
|
||||||
def with_text(self, text):
|
def with_text(self, text):
|
||||||
"""Get a new ConfigErrorDesc with the given text appended."""
|
"""Get a new ConfigErrorDesc with the given text appended."""
|
||||||
|
Loading…
Reference in New Issue
Block a user