summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/WindowList.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/WindowList.py')
-rw-r--r--Lib/idlelib/WindowList.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/WindowList.py b/Lib/idlelib/WindowList.py
index 658502b..d0123d8 100644
--- a/Lib/idlelib/WindowList.py
+++ b/Lib/idlelib/WindowList.py
@@ -45,8 +45,8 @@ class WindowList:
try:
callback()
except:
- print "warning: callback failed in WindowList", \
- sys.exc_type, ":", sys.exc_value
+ t, v, tb = sys.exc_info()
+ print "warning: callback failed in WindowList", t, ":", v
registry = WindowList()