]> granicus.if.org Git - python/commitdiff
Issue #16583: Prevent nesting SystemExit in tkinter.CallWrapper
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Mon, 3 Dec 2012 14:13:07 +0000 (16:13 +0200)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Mon, 3 Dec 2012 14:13:07 +0000 (16:13 +0200)
Lib/tkinter/__init__.py

index de85bf909e9fb17240efd511fe7608190dc97ba6..643026ebf5e6c7f756eefd1d654b353e132d3663 100644 (file)
@@ -1421,8 +1421,8 @@ class CallWrapper:
             if self.subst:
                 args = self.subst(*args)
             return self.func(*args)
-        except SystemExit as msg:
-            raise SystemExit(msg)
+        except SystemExit:
+            raise
         except:
             self.widget._report_exception()