mirror of
https://github.com/django/django.git
synced 2025-04-12 11:32:20 +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
@ -192,7 +192,7 @@ def commit_on_success(func):
|
||||
except Exception, e:
|
||||
if is_dirty():
|
||||
rollback()
|
||||
raise e
|
||||
raise
|
||||
else:
|
||||
if is_dirty():
|
||||
commit()
|
||||
|
Loading…
x
Reference in New Issue
Block a user