Ticket #11076: transaction.diff
File transaction.diff, 582 bytes (added by , 16 years ago) |
---|
-
transaction.py
old new 238 238 res = func(*args, **kw) 239 239 except: 240 240 # All exceptions must be handled here (even string ones). 241 if is_dirty(): 242 rollback() 241 rollback() 243 242 raise 244 243 else: 245 if is_dirty(): 246 commit() 244 commit() 247 245 return res 248 246 finally: 249 247 leave_transaction_management()