Fix error on search for non-Unicode.

This commit is contained in:
ReimuHakurei 2017-05-24 10:14:03 +00:00
parent 8da628136f
commit 363203dfe0
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ def home(rss):
if search_term:
exploded_query = search_term.split(" ")
first_word_user = models.User.by_username(exploded_query[0])
first_word_user = models.User.by_username(exploded_query[0].encode('ascii', 'ignore'))
exploded_query.pop(0)
query_sans_user = ' '.join(exploded_query)
else: