mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 04:01:40 +01:00
[refactor] remove never used parameter
This commit is contained in:
parent
def62c3a47
commit
0c6a09cae3
@ -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))
|
||||
|
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user