[pypy-svn] r52212 - pypy/branch/jit-refactoring/pypy/rpython
arigo at codespeak.net
arigo at codespeak.net
Thu Mar 6 13:05:19 CET 2008
Author: arigo
Date: Thu Mar 6 13:05:13 2008
New Revision: 52212
Modified:
pypy/branch/jit-refactoring/pypy/rpython/llinterp.py
Log:
Avoids an obscure way to hide bugs.
Modified: pypy/branch/jit-refactoring/pypy/rpython/llinterp.py
==============================================================================
--- pypy/branch/jit-refactoring/pypy/rpython/llinterp.py (original)
+++ pypy/branch/jit-refactoring/pypy/rpython/llinterp.py Thu Mar 6 13:05:13 2008
@@ -421,6 +421,13 @@
if exc is None:
original = sys.exc_info()
exc = original[1]
+ # it makes no sense to convert some exception classes that
+ # just mean something buggy crashed
+ if isinstance(exc, (AssertionError, AttributeError,
+ TypeError, NameError,
+ KeyboardInterrupt, SystemExit,
+ ImportError, SyntaxError)):
+ raise original[0], original[1], original[2] # re-raise it
extraargs = (original,)
else:
extraargs = ()
More information about the Pypy-commit
mailing list