mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Don't use bare 'raise'. [ci skip]
This commit is contained in:
parent
856f086ce3
commit
e3686aca93
|
@ -445,7 +445,7 @@ class APIView(View):
|
|||
renderer_format = getattr(request.accepted_renderer, 'format')
|
||||
use_plaintext_traceback = renderer_format not in ('html', 'api', 'admin')
|
||||
request.force_plaintext_errors(use_plaintext_traceback)
|
||||
raise
|
||||
raise exc
|
||||
|
||||
# Note: Views are made CSRF exempt from within `as_view` as to prevent
|
||||
# accidental removal of this exemption in cases where `dispatch` needs to
|
||||
|
|
Loading…
Reference in New Issue
Block a user