diff options
author | Noémi Ványi <sitbackandwait@gmail.com> | 2020-04-17 16:31:02 +0200 |
---|---|---|
committer | Noémi Ványi <sitbackandwait@gmail.com> | 2020-04-17 23:39:48 +0200 |
commit | bce3830b8dd9322e4e93d0003aa86e03c03e2dca (patch) | |
tree | 1bf6c3124684bc38fd00e90749b23ac4719e4e80 /searx/results.py | |
parent | ba7c8d7b960c3a3f288db162a51b76a2a935a605 (diff) | |
download | searxng-bce3830b8dd9322e4e93d0003aa86e03c03e2dca.tar.gz searxng-bce3830b8dd9322e4e93d0003aa86e03c03e2dca.zip |
[fix] translate engine errors to Occitan when configured
Diffstat (limited to 'searx/results.py')
-rw-r--r-- | searx/results.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/results.py b/searx/results.py index 3b1e4bd62..02ab9efb1 100644 --- a/searx/results.py +++ b/searx/results.py @@ -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({ |