mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-17 19:12:37 -05:00
In the event of a misconfigured locale, don't raise an exception.
This commit is contained in:
parent
055b367e2b
commit
dc9003b8d4
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue