From 32279986bddb2cd156f920c079a88d224c0a0783 Mon Sep 17 00:00:00 2001 From: Bernie Hackett Date: Thu, 1 May 2014 10:49:16 -0700 Subject: [PATCH] PYTHON-667 - Clarify drop_index behavior when an index does not exist. --- pymongo/collection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pymongo/collection.py b/pymongo/collection.py index 302733562..affdf93d5 100644 --- a/pymongo/collection.py +++ b/pymongo/collection.py @@ -1174,7 +1174,8 @@ class Collection(common.BaseObject): """Drops the specified index on this collection. Can be used on non-existant collections or collections with no - indexes. Raises OperationFailure on an error. `index_or_name` + indexes. Raises OperationFailure on an error (e.g. trying to + drop an index that does not exist). `index_or_name` can be either an index name (as returned by `create_index`), or an index specifier (as passed to `create_index`). An index specifier should be a list of (key, direction) pairs. Raises