diff options
author | Noémi Ványi <sitbackandwait@gmail.com> | 2020-11-17 23:22:45 +0100 |
---|---|---|
committer | Noémi Ványi <sitbackandwait@gmail.com> | 2020-11-17 23:22:45 +0100 |
commit | 80a8bc5ad99e1ea765d14cdc1916451a3a8ef2a0 (patch) | |
tree | 4b0f02571e92f93889617a9d439d1df43b3214da /searx/webapp.py | |
parent | 963b93b5433da09d00904fa231cbef209cbfbc45 (diff) | |
download | searxng-80a8bc5ad99e1ea765d14cdc1916451a3a8ef2a0.tar.gz searxng-80a8bc5ad99e1ea765d14cdc1916451a3a8ef2a0.zip |
Fix type of unresponsive_engines
Previously __get_translated_errors
returned a list. But unresponsive_engines
is a set.
Closes #2305
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 |