All pastes #623780 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-17 20:49 UTC
rendered paste body
try:
    doTransactionProcessing()
except KeyboardInterrupt:
    commit()
except:
    #all other exceptions
    rollback()
else:
    commit