In the event of a misconfigured locale, don't raise an exception.

This commit is contained in:
Robin Ward 2014-03-07 14:59:29 -05:00
parent 055b367e2b
commit dc9003b8d4

View file

@ -86,6 +86,9 @@ class Search
add_more_topics_if_expected
@results
rescue ActiveRecord::StatementInvalid
# In the event of a PG:Error return nothing, it is likely they used a foreign language whose
# locale is not supported by postgres
end
# Add more topics if we expected them