[IPython-dev] excepthook-like behavior in ipython
Thomas Kluyver
takowl at gmail.com
Wed May 16 08:10:29 EDT 2012
On 14 May 2012 10:25, Erik Tollerud <erik.tollerud at gmail.com> wrote:
> Further investigation has
> revealed that it only happens if I try to raise an exception of a
> class exactly the same as what's given in the first argument to
> set_custom_exc (Exception, in this case), while if I raise
> sub-exceptions, everything works just fine. Is this a bug, or am I
> mis-using it somehow?
Having worked out what's going on, I would consider it a bug, although
fixing it changes the API slightly. I've made a pull request for it.
https://github.com/ipython/ipython/pull/1742
Thomas
More information about the IPython-dev
mailing list