#11900: commit_on_success: Handle Exception in commit() ------------------------------------------+--------------------------------- Reporter: guettli | Owner: nobody Status: new | Milestone: Component: Database layer (models, ORM) | Version: 1.1 Keywords: | Stage: Unreviewed Has_patch: 0 | ------------------------------------------+--------------------------------- If you get an exception during the commit done by the commit_on_success decorator, you get a meaningless error message:
{{{ django.db.transaction.TransactionManagementError: Transaction managed block ended with pending COMMIT/ROLLBACK }}} With this patch you see the real exception. Can someone please write a unittest for this? -- Ticket URL: <http://code.djangoproject.com/ticket/11900> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---