Browse Source

Merge pull request #1093 from Zeph33/fix/#1088

[fix] autocompleter py3 compatibility - fixes #1088
Adam Tauber 7 years ago
parent
commit
0f8d7a00af
No account linked to committer's email
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      searx/query.py

+ 1
- 1
searx/query.py View File

51
         self.query_parts = []
51
         self.query_parts = []
52
 
52
 
53
         # split query, including whitespaces
53
         # split query, including whitespaces
54
-        raw_query_parts = re.split(r'(\s+)', self.query)
54
+        raw_query_parts = re.split(r'(\s+)' if isinstance(self.query, str) else b'(\s+)', self.query)
55
 
55
 
56
         parse_next = True
56
         parse_next = True
57
 
57