summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2007-02-06 19:21:19 +0000
committerKurt B. Kaiser <kbk@shore.net>2007-02-06 19:21:19 +0000
commitf30ff3b8fd79393f0b0a149b682c6a6bf5c2137a (patch)
tree442b7708384c2a53959efd203a5a0a5a77fe9b27 /Lib
parent4864b2bcd78aab1f7561f0c4d987d187d9b6391a (diff)
downloadcpython-git-f30ff3b8fd79393f0b0a149b682c6a6bf5c2137a.tar.gz
narrow exception per [ 1540849 ] except too broad
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/IOBinding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py
index deeb5c527c..37aa08ee3f 100644
--- a/Lib/idlelib/IOBinding.py
+++ b/Lib/idlelib/IOBinding.py
@@ -209,7 +209,7 @@ class IOBinding:
# gets set to "not modified" at every new prompt.
try:
interp = self.editwin.interp
- except:
+ except AttributeError:
interp = None
if not self.filename and self.get_saved() and not interp:
self.editwin.flist.open(filename, self.loadfile)