Ticket #6928: 6928.diff

File 6928.diff, 471 bytes (added by Thomas Güttler, 16 years ago)

Handle KeyboardInterrupt.

  • django/db/transaction.py

     
    192192            managed(True)
    193193            try:
    194194                res = func(*args, **kw)
    195             except Exception, e:
     195            except (Exception, KeyboardInterrupt), e:
    196196                if is_dirty():
    197197                    rollback()
    198198                raise
Back to Top