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}"
|
puts "# #{response.status.to_s}"
|
||||||
data = JSON.parse( response.body )
|
data = JSON.parse( response.body )
|
||||||
if !response.success?
|
if !response.success?
|
||||||
raise data.inspect
|
return []
|
||||||
|
# raise data.inspect
|
||||||
end
|
end
|
||||||
|
|
||||||
ids = []
|
ids = []
|
||||||
|
|
Loading…
Reference in a new issue