mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
Drop Python 2 (1/n): remove unicode string and url_utils
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('utf-8', 'ignore')
|
||||
query = search_query.query.decode(errors='ignore')
|
||||
bang = _get_bang(search_query.external_bang)
|
||||
|
||||
if bang and query:
|
||||
|
||||
Reference in New Issue
Block a user