[Zope-dev] BUG: ValueError while changing height of the template edit window

Casey Duncan casey@zope.com
Tue, 10 Dec 2002 15:29:19 -0500


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

I think Leonard is refering to catching ConflictErrors. However I don't t=
hink=20
int() touches the database ;^).
=20
> 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.
=20
> Also note that the unpatched code has an unqualified except: already,
> so you can't really blame Dmitry.

I say blame Canada!

-Casey