Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r63359:392b6ee52f63
Date: 2013-04-14 17:51 -0700
http://bitbucket.org/pypy/pypy/changeset/392b6ee52f63/

Log:    attempt to normalize the exception before passing it off,
        print_exception requires it in py3

diff --git a/pypy/interpreter/error.py b/pypy/interpreter/error.py
--- a/pypy/interpreter/error.py
+++ b/pypy/interpreter/error.py
@@ -287,6 +287,10 @@
         #
         try:
             if with_traceback:
+                try:
+                    self.normalize_exception(space)
+                except OperationError:
+                    pass
                 w_t = self.w_type
                 w_v = self.get_w_value(space)
                 w_tb = space.wrap(self.get_traceback())
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to