lib/elasticsearch/api/actions/indices/delete_template.rb in elasticsearch-api-0.4.1 vs lib/elasticsearch/api/actions/indices/delete_template.rb in elasticsearch-api-0.4.2

- old
+ new

@@ -23,9 +23,15 @@ params = Utils.__validate_and_extract_params arguments, valid_params body = nil perform_request(method, path, params, body).body + + rescue Exception => e + # NOTE: Use exception name, not full class in Elasticsearch::Client to allow client plugability + if arguments[:ignore] == 404 && e.class.to_s =~ /NotFound/; false + else raise(e) + end end end end end end