[fix] translate engine errors to Occitan when configured

This commit is contained in:
Noémi Ványi 2020-04-17 16:31:02 +02:00
parent ba7c8d7b96
commit bce3830b8d
3 changed files with 19 additions and 16 deletions

View file

@ -345,8 +345,8 @@ class ResultContainer(object):
return 0
return resultnum_sum / len(self._number_of_results)
def add_unresponsive_engine(self, engine_error):
self.unresponsive_engines.add(engine_error)
def add_unresponsive_engine(self, engine_name, error_type, error_message=None):
self.unresponsive_engines.add((engine_name, error_type, error_message))
def add_timing(self, engine_name, engine_time, page_load_time):
self.timings.append({