From e11d9cada520e5df8720ef640323e0015a7da4fc Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 3 Feb 2014 20:40:42 +0100 Subject: [PATCH] Ignore failed search query (can happen if user hasn't entered query completly). --- lib/search_index_backend.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/search_index_backend.rb b/lib/search_index_backend.rb index e0320fdb8..73985bbc8 100644 --- a/lib/search_index_backend.rb +++ b/lib/search_index_backend.rb @@ -166,7 +166,8 @@ return search result puts "# #{response.status.to_s}" data = JSON.parse( response.body ) if !response.success? - raise data.inspect + return [] +# raise data.inspect end ids = []