Author: Armin Rigo <ar...@tunes.org>
Branch: py3.5
Changeset: r89404:593191898bc9
Date: 2017-01-06 17:22 +0000
http://bitbucket.org/pypy/pypy/changeset/593191898bc9/

Log:    translation fix

diff --git a/pypy/interpreter/executioncontext.py 
b/pypy/interpreter/executioncontext.py
--- a/pypy/interpreter/executioncontext.py
+++ b/pypy/interpreter/executioncontext.py
@@ -577,10 +577,11 @@
                 w_impl = space.get(w_del, w_obj)
             except Exception as e:
                 report_error(space, e, "method __del__ of ", w_obj)
-            try:
-                space.call_function(w_impl)
-            except Exception as e:
-                report_error(space, e, '', w_impl)
+            else:
+                try:
+                    space.call_function(w_impl)
+                except Exception as e:
+                    report_error(space, e, '', w_impl)
 
         # Call the RPython-level _finalize_() method.
         try:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to