mirror of
https://github.com/django/django.git
synced 2025-09-29 13:34:57 +00:00
magic-removal: fixed #1472, removed masking of original exception in transactional decorator
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2499 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
3a88988f9a
commit
b1e6e88495
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ def commit_on_success(func):
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
if is_dirty():
|
if is_dirty():
|
||||||
rollback()
|
rollback()
|
||||||
raise e
|
raise
|
||||||
else:
|
else:
|
||||||
if is_dirty():
|
if is_dirty():
|
||||||
commit()
|
commit()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue