Irmen de Jong wrote:
> I want to alter the way exceptions print themselves.
> More specifically, I'd like to extend the __str__ method of
> the exception's class so that it is printed in a different way.
>
> I used to replace the __str__ method on the exception object's
> class by a custom method
Hello,
I want to alter the way exceptions print themselves.
More specifically, I'd like to extend the __str__ method of
the exception's class so that it is printed in a different way.
I used to replace the __str__ method on the exception object's
class by a custom method, but that breaks my code