[pypy-svn] r5350 - pypy/trunk/src/pypy/interpreter

arigo at codespeak.net arigo at codespeak.net
Sat Jun 26 12:26:10 CEST 2004


Author: arigo
Date: Sat Jun 26 12:25:53 2004
New Revision: 5350

Modified:
   pypy/trunk/src/pypy/interpreter/pyopcode.py
Log:
*still* wasn't right.


Modified: pypy/trunk/src/pypy/interpreter/pyopcode.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/pyopcode.py	(original)
+++ pypy/trunk/src/pypy/interpreter/pyopcode.py	Sat Jun 26 12:25:53 2004
@@ -310,7 +310,8 @@
             if operror is None:
                 raise OperationError(f.space.w_TypeError,
                     f.space.wrap("raise: no active exception to re-raise"))
-            raise operror   # re-raise the same OperationError
+            # re-raise, no new traceback obj will be attached
+            raise pyframe.SApplicationException(operror)
         w_value = w_traceback = f.space.w_None
         if nbargs >= 3: w_traceback = f.valuestack.pop()
         if nbargs >= 2: w_value     = f.valuestack.pop()



More information about the Pypy-commit mailing list