Skip to content

Commit

Permalink
Catching not found
Browse files Browse the repository at this point in the history
  • Loading branch information
pyromaniac committed May 18, 2012
1 parent ea8ce46 commit c337b49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nano_api/client/search.rb
Expand Up @@ -25,7 +25,7 @@ def search host, params
params_attributes: search_params
}
)
rescue RestClient::BadRequest, RestClient::Forbidden => exception
rescue RestClient::ResourceNotFound, RestClient::BadRequest, RestClient::Forbidden => exception
[exception.http_body, exception.http_code]
rescue RestClient::InternalServerError
nil
Expand Down

0 comments on commit c337b49

Please sign in to comment.