mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 20:40:14 +03:00
Update requirements, Python 3.5 error with naked raise
This commit is contained in:
parent
1aa6dff0b5
commit
28b801bc1b
|
@ -1,6 +1,6 @@
|
|||
# PEP8 code linting, which we run on all commits.
|
||||
flake8==2.4.0
|
||||
pep8==1.5.7
|
||||
flake8==3.0.4
|
||||
pep8==1.7.0
|
||||
|
||||
# Sort and lint imports
|
||||
isort==4.2.5
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
wheel==0.29.0
|
||||
|
||||
# Twine for secured PyPI uploads.
|
||||
twine==1.6.5
|
||||
twine==1.8.1
|
||||
|
||||
# Transifex client for managing translation resources.
|
||||
transifex-client==0.11
|
||||
transifex-client==0.12.2
|
||||
|
||||
# Pandoc to have a nice pypi page
|
||||
pypandoc
|
||||
|
|
|
@ -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