Skip to content

Commit

Permalink
#9 type error DEMIndex save
Browse files Browse the repository at this point in the history
  • Loading branch information
codekiln committed Aug 3, 2018
1 parent 6775594 commit db93980
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions django_elastic_migrations/indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,9 @@ def save(self, using=None):
using = es_client
try:
super(DEMIndex, self).save(using=using)
except TypeError as te:
if "unexpected keyword argument 'using'" in str(te):
super(DEMIndex, self).save()
except ValueError as ex:
if "Empty value" in ex.message and not self.get_active_version_index_name():
msg = (
Expand Down

0 comments on commit db93980

Please sign in to comment.