diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2007-02-06 19:21:19 +0000 |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2007-02-06 19:21:19 +0000 |
commit | f30ff3b8fd79393f0b0a149b682c6a6bf5c2137a (patch) | |
tree | 442b7708384c2a53959efd203a5a0a5a77fe9b27 /Lib | |
parent | 4864b2bcd78aab1f7561f0c4d987d187d9b6391a (diff) | |
download | cpython-git-f30ff3b8fd79393f0b0a149b682c6a6bf5c2137a.tar.gz |
narrow exception per [ 1540849 ] except too broad
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/idlelib/IOBinding.py | 2 |
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) |