id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 6096,commit_on_success does not handle SystemExit,eric@…,Fabián Ezequiel Gallina,"I do not know if commit_on_success intentionally only catches Exception instead of BaseException (or just a plain except:). I was writing a command-line script that called sys.exit(1) when it detected a problem, but the transaction manager was raising TransactionManagementError(""Transaction managed block ended with pending COMMIT/ROLLBACK"") and it took me a long time to figure out what was going on. If you don't want to change it to catch all exceptions, may I suggest adding a small note to the docs?",,closed,"Database layer (models, ORM)",dev,,fixed,,,Accepted,0,0,0,0,0,0