try-except-finally question
Igor V. Rafienko
igorr at ifi.uio.no
Fri Dec 28 00:52:16 EST 2001
[ Aahz Maruch ]
[ Thanks to everyone who answered ]
[ snip ]
> > except DBError:
> > <log error>
> except:
> <log error>
> raise
Jupp, that is what I was looking for.
[ snip ]
> Note the addition of "except:" above. You need the "raise" to make
> sure the error gets re-raised (you *want* to abort if the user hits
> ^C).
Hmm... that didn't occur me. Thank you for the tip.
ivr
--
Partial Nudity is allowed by female users.
More information about the Python-list
mailing list