Ignore failed search query (can happen if user hasn't entered query completly).
This commit is contained in:
parent
e5c35021ac
commit
e11d9cada5
1 changed files with 2 additions and 1 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue