[PATCH] [cubicweb-ctl/fix] correctly get exception traceback_ for pdb.post_mortem

Denis Laxalde denis.laxalde at logilab.fr
Tue Jul 30 12:12:51 CEST 2019


Laurent Peuch a écrit :
> # HG changeset patch
> # User Laurent Peuch <cortex at worlddomination.be>
> # Date 1564018381 -7200
> #      Thu Jul 25 03:33:01 2019 +0200
> # Node ID 77505612c086fa21b95632937439bc133beb79a6
> # Parent  ae0c09ff6be8469fb9283b89135e4c7c53ac7c6d
> [cubicweb-ctl/fix] correctly get exception traceback_ for pdb.post_mortem
> 
> In python 3 the behavior of sys.exc_info had a very subtle change:
> 
> - in python 2 you can call if whenever you want after a try/except statement
>   and you'll get information about this last raise
> - ipython 3, once you get out of try/except, sys.exc_info is cleaned and you'll
>   get (None, None, None)

Do you have a reference explaining this change?

> Hardened the test to avoid this error from happening again.



More information about the cubicweb-devel mailing list