18 Oct
2004
18 Oct
'04
5:36 p.m.
Sean Hastings wrote at 2004-10-18 01:58 -0400:
I believe that "try: ... except:..." code is only really dangerous if you do not specify the type of Exceptions that will be caught.
I believe you are wrong: Catching *ANY* exception can cause inconsistencies in persistent data. It does (almost surely) when the "try" block modified persistent state before the exception occurred (and you did not ensure that the transaction is aborted). -- Dieter