[fix] not highlighting Nonetype

pull/1/head
asciimoo 11 years ago
parent 88b5169f8d
commit 5f065886ff

@ -107,6 +107,9 @@ def make_callback(engine_name, results, suggestions, callback, params):
return process_callback
def highlight_content(content, query):
if not content:
return None
# ignoring html contents
# TODO better html content detection
if content.find('<') != -1:

Loading…
Cancel
Save