[Zope3-dev] Please, no bare 'except:' clauses!
Shane Hathaway
shane@zope.com
Mon, 11 Nov 2002 23:45:31 -0500 (EST)
On Mon, 11 Nov 2002, Jim Fulton wrote:
> > 1) Don't let DatabaseErrors be so special any more. Currently, we want
> > ConflictErrors to propagate, in order to prevent inconsistent data from
> > being committed, and to give the app an opportunity to retry. But
> > excessive exception catching ought not to be so catastrophic. I think
> > any attempt to write or commit after a ConflictError has occurred should
> > result in another ConflictError, since the data being written is
> > generated from inconsistent data. AFAICT this would eliminate the need
> > to make DatabaseErrors special, and would only change ZODB.
>
> This is already the case.
In ZODB 4?
Shane