add exception handling for failed popular search service calls
This commit is contained in:
@@ -37,5 +37,10 @@ class PopularSearchService
|
|||||||
end
|
end
|
||||||
response
|
response
|
||||||
end.to_s.force_encoding("utf-8")
|
end.to_s.force_encoding("utf-8")
|
||||||
|
|
||||||
|
rescue => e
|
||||||
|
Rails.logger.error(e.to_s)
|
||||||
|
NewRelic::Agent.notice_error(e)
|
||||||
|
return []
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user