lib/elasticsearch/api/actions/indices/delete_template.rb in elasticsearch-api-0.4.7 vs lib/elasticsearch/api/actions/indices/delete_template.rb in elasticsearch-api-0.4.8

- old
+ new

@@ -26,10 +26,10 @@ 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 + if Array(arguments[:ignore]).include?(404) && e.class.to_s =~ /NotFound/; false else raise(e) end end end end