[refactor] remove never used parameter

This commit is contained in:
Martin Fischer 2022-01-17 10:56:14 +01:00
parent def62c3a47
commit 0c6a09cae3
2 changed files with 2 additions and 4 deletions

View file

@ -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))

View file

@ -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))