on master help sign in
Fix: activate raise_for_error by default

Fix commit d703119d3a313a406482b121ee94c6afee3bc307 : Some engines need to parse the HTTP error but raise_for_error is always set to False in the "request" function.

commitaedf03c0f750240b19f01ed1a007043141c667dc authorAlexandre Flament <alex@al-f.net> dateTue 9 Feb 2021, 11:27 (6 years ago) parentf03ad0a
1 file changed+1−1
searx/search/processors/online.py+1−1
searx/search/processors/online.py+1−1
@@ -77,7 +77,7 @@ class OnlineProcessor(EngineProcessor):
7777 soft_max_redirects = params.get('soft_max_redirects', max_redirects or 0)
7878
7979 # raise_for_status
80− request_args['raise_for_httperror'] = params.get('raise_for_httperror', False)
80+ request_args['raise_for_httperror'] = params.get('raise_for_httperror', True)
8181
8282 # specific type of request (GET or POST)
8383 if params['method'] == 'GET':