Ticket #8315: 8315-2.diff

File 8315-2.diff, 523 bytes (added by Karen Tracey <kmtracey@…>, 16 years ago)
  • django/db/__init__.py

     
    5353# when a Django request has an exception.
    5454def _rollback_on_exception(**kwargs):
    5555    from django.db import transaction
    56     transaction.rollback_unless_managed()
     56    try:
     57        transaction.rollback_unless_managed()
     58    except DatabaseError:
     59        pass
    5760signals.got_request_exception.connect(_rollback_on_exception)
Back to Top