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 856f086 commit e3686acCopy full SHA for e3686ac
rest_framework/views.py
@@ -445,7 +445,7 @@ def raise_uncaught_exception(self, exc):
445
renderer_format = getattr(request.accepted_renderer, 'format')
446
use_plaintext_traceback = renderer_format not in ('html', 'api', 'admin')
447
request.force_plaintext_errors(use_plaintext_traceback)
448
- raise
+ raise exc
449
450
# Note: Views are made CSRF exempt from within `as_view` as to prevent
451
# accidental removal of this exemption in cases where `dispatch` needs to
0 commit comments