Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r83957:b1242e337f6c
Date: 2016-04-26 21:47 -0700
http://bitbucket.org/pypy/pypy/changeset/b1242e337f6c/

Log:    fix reraise in hidden functions (grafted from
        c4d7b8fef89a557df8cc1c926471c0c4d04b9bb3)

diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -658,7 +658,7 @@
         if nbargs > 2:
             raise BytecodeCorruption("bad RAISE_VARARGS oparg")
         if nbargs == 0:
-            last_operr = self._exc_info_unroll(space)
+            last_operr = self._exc_info_unroll(space, for_hidden=True)
             if last_operr is None:
                 raise oefmt(space.w_RuntimeError,
                             "No active exception to reraise")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to