diff options
author | Alexandre Flament <alex@al-f.net> | 2020-11-18 09:37:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-18 09:37:29 +0100 |
commit | 2fc3b17c85512280173bb47f449cc2faa64b0501 (patch) | |
tree | 4b0f02571e92f93889617a9d439d1df43b3214da /searx/webapp.py | |
parent | 963b93b5433da09d00904fa231cbef209cbfbc45 (diff) | |
parent | 80a8bc5ad99e1ea765d14cdc1916451a3a8ef2a0 (diff) | |
download | searxng-2fc3b17c85512280173bb47f449cc2faa64b0501.tar.gz searxng-2fc3b17c85512280173bb47f449cc2faa64b0501.zip |
Merge pull request #2323 from kvch/fix-unresponsive-engine-set-modified
Fix RuntimeError during search with translated errors
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-x | searx/webapp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 65308275b..2a93c3765 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -735,12 +735,12 @@ def search(): def __get_translated_errors(unresponsive_engines): - translated_errors = [] + translated_errors = set() for unresponsive_engine in unresponsive_engines: error_msg = gettext(unresponsive_engine[1]) if unresponsive_engine[2]: error_msg = "{} {}".format(error_msg, unresponsive_engine[2]) - translated_errors.append((unresponsive_engine[0], error_msg)) + translated_errors.add((unresponsive_engine[0], error_msg)) return translated_errors |