summaryrefslogtreecommitdiff
path: root/searx/external_bang.py
diff options
context:
space:
mode:
authorDalf <alex@al-f.net>2020-08-11 16:25:03 +0200
committerAlexandre Flament <alex@al-f.net>2020-09-10 10:49:42 +0200
commitc225db45c8a4ab466bff049216f7e0189dc1b067 (patch)
tree16be3299a6faf15538fc1f2cf181aadc422039fd /searx/external_bang.py
parent78883777438fc07833d983c50d9b131eb6feb9eb (diff)
downloadsearxng-c225db45c8a4ab466bff049216f7e0189dc1b067.tar.gz
searxng-c225db45c8a4ab466bff049216f7e0189dc1b067.zip
Drop Python 2 (4/n): SearchQuery.query is a str instead of bytes
Diffstat (limited to 'searx/external_bang.py')
-rw-r--r--searx/external_bang.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/external_bang.py b/searx/external_bang.py
index 3a25cc493..92b6e6a09 100644
--- a/searx/external_bang.py
+++ b/searx/external_bang.py
@@ -23,7 +23,7 @@ def get_bang_url(search_query):
"""
if search_query.external_bang:
- query = search_query.query.decode(errors='ignore')
+ query = search_query.query
bang = _get_bang(search_query.external_bang)
if bang and query: