diff options
author | Adam Tauber <asciimoo@gmail.com> | 2017-11-15 14:51:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-15 14:51:14 +0100 |
commit | 5ceaf2139930f6f902970e3beea87493579a7a2d (patch) | |
tree | 4b7f00e0b571c5e7c3b6f49ba1be6e0e50d0445a | |
parent | 84e7b8bad10280e947d5dfff864630ee331da044 (diff) | |
parent | ed1c78d92300948d9692f411e97db330de550726 (diff) | |
download | searxng-5ceaf2139930f6f902970e3beea87493579a7a2d.tar.gz searxng-5ceaf2139930f6f902970e3beea87493579a7a2d.zip |
Merge pull request #1084 from moon2l/master
fix bug: TypeError: set(['bing', 'google']) is not JSON serializable,…
-rw-r--r-- | searx/webapp.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index f81747325..371fb2a31 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -541,7 +541,8 @@ def index(): 'corrections': list(result_container.corrections), 'infoboxes': result_container.infoboxes, 'suggestions': list(result_container.suggestions), - 'unresponsive_engines': list(result_container.unresponsive_engines)}), + 'unresponsive_engines': list(result_container.unresponsive_engines)}, + default=lambda item: list(item) if isinstance(item, set) else item), mimetype='application/json') elif output_format == 'csv': csv = UnicodeWriter(StringIO()) |