[Patches] [ python-Patches-1540857 ] except too broad
SourceForge.net
noreply at sourceforge.net
Tue Aug 15 21:12:36 CEST 2006
Patches item #1540857, was opened at 2006-08-15 15:06
Message generated for change (Settings changed) made by jimjjewett
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1540857&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: IDLE
Group: Python 2.4
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Jim Jewett (jimjjewett)
Assigned to: Nobody/Anonymous (nobody)
Summary: except too broad
Initial Comment:
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.)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1540857&group_id=5470
More information about the Patches
mailing list