From: <pj...@us...> - 2009-03-26 16:49:28
|
Revision: 6108 http://jython.svn.sourceforge.net/jython/?rev=6108&view=rev Author: pjenvey Date: 2009-03-26 16:49:14 +0000 (Thu, 26 Mar 2009) Log Message: ----------- fix lack of tracing when creating exceptions thanks jha fixes #1249 Modified Paths: -------------- trunk/jython/src/org/python/core/PyException.java Modified: trunk/jython/src/org/python/core/PyException.java =================================================================== --- trunk/jython/src/org/python/core/PyException.java 2009-03-22 14:00:52 UTC (rev 6107) +++ trunk/jython/src/org/python/core/PyException.java 2009-03-26 16:49:14 UTC (rev 6108) @@ -49,6 +49,11 @@ if (traceback != null) { this.traceback = traceback; isReRaise = true; + } else { + PyFrame frame = Py.getFrame(); + if (frame != null && frame.tracefunc != null) { + frame.tracefunc = frame.tracefunc.traceException(frame, this); + } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |