Skip to content

Commit e3686ac

Browse files
committed
Don't use bare 'raise'. [ci skip]
1 parent 856f086 commit e3686ac

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
448+
raise exc
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)