summaryrefslogtreecommitdiff
path: root/searx/search/processors
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-02-09 11:27:41 +0100
committerAlexandre Flament <alex@al-f.net>2021-02-09 11:27:41 +0100
commitaedf03c0f750240b19f01ed1a007043141c667dc (patch)
tree1564105329a22e28d5e3234e3b076f3f1c0e2d7f /searx/search/processors
parentf03ad0a3c0d32d6f6389c7891d752da11c0e8534 (diff)
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.
Diffstat (limited to 'searx/search/processors')
-rw-r--r--searx/search/processors/online.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/search/processors/online.py b/searx/search/processors/online.py
index d79edd54..0cc175e1 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':