Merge pull request #2557 from dalf/fix-raise_for_httperror
Fix: activate raise_for_error by default
commit63d6ccfbc2f1a61a2b0b9040d89858a540ede475
authorAlexandre Flament <alex@al-f.net>
dateFri 12 Feb 2021, 10:56 (6 years ago)
parent74c8b56aedf03c
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':