On Tuesday 10 December 2002 03:14 pm, Guido van Rossum wrote:
> > Can we get the same patch without the generic "except:", please?
> > 
> > the last thing I want is a database corruption caused by resizing the
> > Edit box...
> Why would this particular except clause cause database corruption?

I think Leonard is refering to catching ConflictErrors. However I don't think 
int() touches the database ;^).
> int() happens to raise a bunch of different exceptions, and I think
> an unqualified except: clause is okay here (though it needs a
> comment).

Yup and please reformat the other try: except: if you reformat the first one.
> Also note that the unpatched code has an unqualified except: already,
> so you can't really blame Dmitry.

I say blame Canada!


Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to