Merge pull request #2557 from dalf/fix-raise_for_httperror

Fix: activate raise_for_error by default
dependabot/pip/master/sphinx-6.1.3
Alexandre Flament 4 years ago committed by GitHub
commit 63d6ccfbc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -77,7 +77,7 @@ class OnlineProcessor(EngineProcessor):
soft_max_redirects = params.get('soft_max_redirects', max_redirects or 0) soft_max_redirects = params.get('soft_max_redirects', max_redirects or 0)
# raise_for_status # raise_for_status
request_args['raise_for_httperror'] = params.get('raise_for_httperror', False) request_args['raise_for_httperror'] = params.get('raise_for_httperror', True)
# specific type of request (GET or POST) # specific type of request (GET or POST)
if params['method'] == 'GET': if params['method'] == 'GET':

Loading…
Cancel
Save