mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-04-14 09:38:57 +00:00
Fix crash introduced in 4.1.0 when creating Elasticsearch indexes (Issue #15)
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
4.1.3
|
||||
-----
|
||||
|
||||
- Fix crash introduced in 4.1.0 when creating Elasticsearch indexes (Issue #15)
|
||||
|
||||
4.1.2
|
||||
-----
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ import imapclient.exceptions
|
||||
import dateparser
|
||||
import mailparser
|
||||
|
||||
__version__ = "4.1.2"
|
||||
__version__ = "4.1.3"
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.setLevel(logging.ERROR)
|
||||
|
||||
@@ -184,7 +184,8 @@ def create_indexes(names=None, settings=None):
|
||||
for name in names:
|
||||
index = Index(name)
|
||||
if not index.exists():
|
||||
index.put_settings(settings)
|
||||
if settings:
|
||||
index.put_settings(settings)
|
||||
index.create()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user