summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/IOBinding.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2007-02-06 19:21:19 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2007-02-06 19:21:19 (GMT)
commitf30ff3b8fd79393f0b0a149b682c6a6bf5c2137a (patch)
tree442b7708384c2a53959efd203a5a0a5a77fe9b27 /Lib/idlelib/IOBinding.py
parent4864b2bcd78aab1f7561f0c4d987d187d9b6391a (diff)
downloadcpython-f30ff3b8fd79393f0b0a149b682c6a6bf5c2137a.zip
cpython-f30ff3b8fd79393f0b0a149b682c6a6bf5c2137a.tar.gz
cpython-f30ff3b8fd79393f0b0a149b682c6a6bf5c2137a.tar.bz2
narrow exception per [ 1540849 ] except too broad
Diffstat (limited to 'Lib/idlelib/IOBinding.py')
-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 deeb5c5..37aa08e 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)