Qix- / better-exceptions

Pretty and useful exceptions in Python, automatically.
MIT License
4.6k stars 204 forks source link

Surround repr() with try / except in case object is unprintable #65

Closed Delgan closed 5 years ago

Delgan commented 5 years ago

It may happen that calling repr() on arbitrary object raises an exception. In such case, the error should be caught and some default string should be displayed instead. This is actually what is already done in CPython.