Skip to content

Commit fd32dd7

Browse files
rpkilbytomchristie
authored andcommitted
Explicitly raise exc in 'raise_uncaught_exception' (#6435)
1 parent 9e1e32f commit fd32dd7

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
@@ -463,7 +463,7 @@ def raise_uncaught_exception(self, exc):
463463
renderer_format = getattr(request.accepted_renderer, 'format')
464464
use_plaintext_traceback = renderer_format not in ('html', 'api', 'admin')
465465
request.force_plaintext_errors(use_plaintext_traceback)
466-
raise
466+
raise exc
467467

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

0 commit comments

Comments
 (0)