commit | f30ff3b8fd79393f0b0a149b682c6a6bf5c2137a | [log] [tgz] |
---|---|---|
author | Kurt B. Kaiser <kbk@shore.net> | Tue Feb 06 19:21:19 2007 +0000 |
committer | Kurt B. Kaiser <kbk@shore.net> | Tue Feb 06 19:21:19 2007 +0000 |
tree | 442b7708384c2a53959efd203a5a0a5a77fe9b27 | |
parent | 4864b2bcd78aab1f7561f0c4d987d187d9b6391a [diff] |
narrow exception per [ 1540849 ] except too broad
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 @@ # 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)