Fixed tipue_search failing with pages due to no category.

This commit is contained in:
Rod Morehead
2014-01-09 09:26:12 -06:00
parent f30a68fbf4
commit 95d7ebb470

View File

@@ -40,7 +40,7 @@ class Tipue_Search_JSON_Generator(object):
page_text = soup_text.get_text(' ', strip=True).replace('', '"').replace('', '"').replace('', "'").replace('', ' ').replace('^', '^')
page_text = ' '.join(page_text.split())
if getattr(page, 'category') == 'None':
if getattr(page, 'category', 'None') == 'None':
page_category = ''
else:
page_category = page.category.name