Skip to content

Commit 7eb6cdc

Browse files
authored
Don't lose exception info (encode#4638)
1 parent 895c67c commit 7eb6cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def raise_uncaught_exception(self, exc):
445445
renderer_format = getattr(request.accepted_renderer, 'format')
446446
use_plaintext_traceback = renderer_format not in ('html', 'api', 'admin')
447447
request.force_plaintext_errors(use_plaintext_traceback)
448-
raise exc
448+
raise
449449

450450
# Note: Views are made CSRF exempt from within `as_view` as to prevent
451451
# accidental removal of this exemption in cases where `dispatch` needs to

0 commit comments

Comments
 (0)