Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

Commit

Permalink
Issue 85. Fix IndexMissingException.
Browse files Browse the repository at this point in the history
Alleviate problems from a bug in pyes 0.15.
  • Loading branch information
willkg committed Oct 17, 2012
1 parent 7dcc034 commit 1578b37
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion elasticutils/tests/__init__.py
Expand Up @@ -69,7 +69,12 @@ def get_s(cls, mapping_type=None):
@classmethod
def create_index(cls):
es = cls.get_es()
es.delete_index_if_exists(cls.index_name)
try:
es.delete_index_if_exists(cls.index_name)
except pyes.exceptions.IndexMissingException:
# pyes 0.15 throws an IndexMissingException despite the
# fact that the method should allow for that.
pass
es.create_index(cls.index_name)

@classmethod
Expand Down

0 comments on commit 1578b37

Please sign in to comment.