summaryrefslogtreecommitdiff
path: root/searx/results.py
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-01-17 10:56:14 +0100
committerMartin Fischer <martin@push-f.com>2022-01-17 11:42:48 +0100
commit0c6a09cae34997b2b5aba83bac50fabacafde59f (patch)
tree93d3cf244e8d9e30a2bae529f7003cf6abbc5bd0 /searx/results.py
parentdef62c3a47384b6672cb584cd586ea104b86754f (diff)
downloadsearxng-0c6a09cae34997b2b5aba83bac50fabacafde59f.tar.gz
searxng-0c6a09cae34997b2b5aba83bac50fabacafde59f.zip
[refactor] remove never used parameter
Diffstat (limited to 'searx/results.py')
-rw-r--r--searx/results.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/results.py b/searx/results.py
index 39e6e95d4..5e1b46ed5 100644
--- a/searx/results.py
+++ b/searx/results.py
@@ -409,9 +409,9 @@ class ResultContainer:
return 0
return resultnum_sum / len(self._number_of_results)
- def add_unresponsive_engine(self, engine_name, error_type, error_message=None, suspended=False):
+ def add_unresponsive_engine(self, engine_name, error_type, suspended=False):
if engines[engine_name].display_error_messages:
- self.unresponsive_engines.add((engine_name, error_type, error_message, suspended))
+ self.unresponsive_engines.add((engine_name, error_type, suspended))
def add_timing(self, engine_name: str, engine_time: float, page_load_time: float):
self.timings.append(Timing(engine_name, total=engine_time, load=page_load_time))