summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-11-18 09:37:29 +0100
committerGitHub <noreply@github.com>2020-11-18 09:37:29 +0100
commit2fc3b17c85512280173bb47f449cc2faa64b0501 (patch)
tree4b0f02571e92f93889617a9d439d1df43b3214da
parent963b93b5433da09d00904fa231cbef209cbfbc45 (diff)
parent80a8bc5ad99e1ea765d14cdc1916451a3a8ef2a0 (diff)
downloadsearxng-2fc3b17c85512280173bb47f449cc2faa64b0501.tar.gz
searxng-2fc3b17c85512280173bb47f449cc2faa64b0501.zip
Merge pull request #2323 from kvch/fix-unresponsive-engine-set-modified
Fix RuntimeError during search with translated errors
-rwxr-xr-xsearx/webapp.py4
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