From f30ff3b8fd79393f0b0a149b682c6a6bf5c2137a Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Tue, 6 Feb 2007 19:21:19 +0000 Subject: [PATCH] narrow exception per [ 1540849 ] except too broad --- Lib/idlelib/IOBinding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.50.1