Liste des Groupes | Revenir à cl python |
On 2024-09-08, Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:Good point. Putting the rollback first would be safer/try:What if there's an exception in your exception handler? I'd put the
do something
.commit()
except:
log something
.rollback()
rollback in the 'finally' handler, so it's always called.
Les messages affichés proviennent d'usenet.