Browse Source

Merge pull request #2358 from dalf/fix-command

[fix] command engine: SearchQuery.query is str not bytes
Alexandre Flament 4 years ago
parent
commit
3c4a9c1188
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 = []