mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
Drop Python 2 (4/n): SearchQuery.query is a str instead of bytes
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user