diff --git a/django/db/transaction.py b/django/db/transaction.py index e5e8890ee7..506074f1b3 100644 --- a/django/db/transaction.py +++ b/django/db/transaction.py @@ -236,10 +236,8 @@ def commit_on_success(func): managed(True) try: res = func(*args, **kw) - except (Exception, KeyboardInterrupt, SystemExit): - # (We handle KeyboardInterrupt and SystemExit specially, since - # they don't inherit from Exception in Python 2.5, but we - # should treat them uniformly here.) + except: + # All exceptions must be handled here (even string ones). if is_dirty(): rollback() raise