From aedf03c0f750240b19f01ed1a007043141c667dc Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Tue, 9 Feb 2021 11:27:41 +0100 Subject: [PATCH] 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. --- searx/search/processors/online.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/search/processors/online.py b/searx/search/processors/online.py index d79edd542..0cc175e1b 100644 --- a/searx/search/processors/online.py +++ b/searx/search/processors/online.py @@ -77,7 +77,7 @@ class OnlineProcessor(EngineProcessor): soft_max_redirects = params.get('soft_max_redirects', max_redirects or 0) # 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) if params['method'] == 'GET':