[Patches] [ python-Patches-1540849 ] except too broad

SourceForge.net noreply at sourceforge.net
Wed Aug 16 04:56:18 CEST 2006


Patches item #1540849, was opened at 2006-08-15 14:55
Message generated for change (Settings changed) made by kbk
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1540849&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.6
Status: Open
>Resolution: Later
Priority: 5
Submitted By: Jim Jewett (jimjjewett)
>Assigned to: Kurt B. Kaiser (kbk)
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=1540849&group_id=5470


More information about the Patches mailing list