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)) diff --git a/searx/webapp.py b/searx/webapp.py index fc851d44e..bb6e74b25 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -857,8 +857,6 @@ def __get_translated_errors(unresponsive_engines): error_user_text = exception_classname_to_text[None] error_msg = gettext(error_user_text) if unresponsive_engine[2]: - error_msg = "{} {}".format(error_msg, unresponsive_engine[2]) - if unresponsive_engine[3]: error_msg = gettext('Suspended') + ': ' + error_msg translated_errors.append((unresponsive_engine[0], error_msg))