aparo/pyes — pull request #402 by brunal (2014-05-26 09:34:47+00:00)
Title: Fix a race condition on index' doc count retrieval

managers.Indices.get_indices() could fail (and raise a KeyError) upon
reading the 'num_docs' of an index just created. Catching the exception
and setting the 'num_docs' to 0 (which is the actual value) fixes the
problem.

This fixes issue #401.