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 895c67c commit 7eb6cdcCopy full SHA for 7eb6cdc
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 exc
+ raise
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