# HG changeset patch # User Drew Perttula # Date 2019-06-06 00:12:02 # Node ID 7088d60fde7ee853b1da59e2b7a7c88177c95748 # Parent 9f0f2b39ad95484dea3121243d7523f660ce5de0 leave cool ipython exc handler in run_local.py Ignore-this: 11bd28c361de6a84ec70d55e0f18a242 diff --git a/bin/run_local.py b/bin/run_local.py --- a/bin/run_local.py +++ b/bin/run_local.py @@ -52,6 +52,12 @@ try: except ImportError: pass +if 0: + from IPython.core import ultratb + sys.excepthook = ultratb.FormattedTB(mode='Verbose', + color_scheme='Linux', + call_pdb=1) + progName = sys.argv[0].split('/')[-1] log = logging.getLogger() # this has to get the root logger log.name = progName # but we can rename it for clarity