This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: except too broad
Type: Stage:
Components: IDLE Versions: Python 2.4
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: jimjjewett
Priority: normal Keywords: patch

Created on 2006-08-15 19:06 by jimjjewett, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
idlelibiobinding.patch.txt jimjjewett, 2006-08-15 19:06 Narrows to appripriate exception
Messages (1)
msg50898 - (view) Author: Jim Jewett (jimjjewett) Date: 2006-08-15 19:06
IOBinding.open looks for an self.editwin.interp (after 
having already verified that self.editwin exists), but 
catches exceptions with a bare except.  This narrows 
it to an AttributeError.

(Note that the save method already assumes that 
missing attributes on an editwin will be represented 
as AtributeError rather than TypeError.)
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43829
2006-08-15 19:06:13jimjjewettcreate