Browse Source

[fix] command engine: SearchQuery.query is str not bytes

see c225db45c8a4ab466bff049216f7e0189dc1b067
Alexandre Flament 4 years ago
parent
commit
1e781863fa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/engines/command.py

+ 1 - 1
searx/engines/command.py

@@ -80,7 +80,7 @@ def search(query, params):
 
 
 def _get_command_to_run(query):
-    params = shlex_split(query.decode('utf-8'))
+    params = shlex_split(query)
     __check_query_params(params)
 
     cmd = []