mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +00:00
narrow exception per [ 1540849 ] except too broad
This commit is contained in:
parent
4864b2bcd7
commit
f30ff3b8fd
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue