From e6147ab72b4c6a03eecc4e71b96c0df1735af4cf Mon Sep 17 00:00:00 2001 From: Bernie Hackett Date: Thu, 1 May 2014 10:52:51 -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 049d87d1e..77a1b2278 100644 --- a/pymongo/collection.py +++ b/pymongo/collection.py @@ -1179,7 +1179,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