mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 13:49:59 +00:00
Fix error on search for non-Unicode.
This commit is contained in:
parent
8da628136f
commit
363203dfe0
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue