Closed Delgan closed 4 years ago
I'm curious about the fact that you're choosing stackprinter over better-exceptions :eyes:
@alexmojaki Well, both are great libraries in my opinion. :smile:
I got a bug report from an user. It seems that a library I developed is not fully compatible with stackprinter
due to edge case like this one. I think it would be better if it could work transparently for the user.
Hi! I agree, the closer to the builtin traceback behavior the better. I'll check out your PR (thanks!) as soon as I get back to my computer
Fixed by #36. Thanks for the merge @cknd. :+1:
this is now released in 0.2.5
cc @JulianOrteil ☝️
Saw this, thank you. Already updated my installation 👍
Hi!
The built-in
traceback
module handles(None, None, None)
tuple (returned ifsys.exc_info()
is called outside the context of an exception) without raising an error:Using
stackprinter
, however:You may argue that formatting such exception is pretty useless... You're right. :smile:
Still, in my situation it happens that the exception tuple looks more like
(TypeError, None, None)
(I'll save you the details, but it happens if the error value can't be serialized, then it is replaced byNone
by default). In such case, it would be nice to format the error likeTypeError: None
for example instead of raising aValueError
. That would be useful so that user could format any exception-tuple without having to check for edge cases like that.