|
|
|
|
|
by the_mitsuhiko
4332 days ago
|
|
> I don't understand what are you talking about. AFAIK, you don't have to reraise the previous exception: Correct, and also you can explicitly suppress the other traceback now (3.2+) I just wish it was the default unless you opted in. If I catch down an exception and raise another one I do not want the old one. Only in very rare cases am I interested in what lead to it. I have lots of hacks in Jinja2 now to hide useless tracebacks that would only confuse users. For instance a jinja context tries different dicts through a chain in __getitem__. The naive implementation on Python 3 generates two nearly equivalent tracebacks that are very confusing. |
|