[fix] not highlighting Nonetype

This commit is contained in:
asciimoo 2013-12-16 14:06:53 +01:00
parent 88b5169f8d
commit 5f065886ff

View File

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