We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e1e32f commit fd32dd7Copy full SHA for fd32dd7
rest_framework/views.py
@@ -463,7 +463,7 @@ def raise_uncaught_exception(self, exc):
463
renderer_format = getattr(request.accepted_renderer, 'format')
464
use_plaintext_traceback = renderer_format not in ('html', 'api', 'admin')
465
request.force_plaintext_errors(use_plaintext_traceback)
466
- raise
+ raise exc
467
468
# Note: Views are made CSRF exempt from within `as_view` as to prevent
469
# accidental removal of this exemption in cases where `dispatch` needs to
0 commit comments