Qix-/better-exceptions

format_exception compatibility

Closed this issue · 3 comments

One may expect better_exceptions.format_exception and traceback.format_exception to be compatible. The difference is though that the first one returns list while the former one returns string. I would suggest to consider aligning behavior of these methods.

Qix- commented

I haven't confirmed that what you claim is the case (I don't doubt it, though).

Assuming it is, I agree. Need to see why I returned it as a list in the first place.

@Qix- This was actually fixed a few days ago by #64

I slightly refactored better_exceptions.format_traceback() so that it returns a list of strings, as do traceback.format_traceback().

Qix- commented

Ah yes, forgot about that. Thanks @Delgan :)