Skip to content

Commit

Permalink
Update Nox file import elasticsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
V1NAY8 committed Oct 27, 2020
1 parent f623333 commit e0f9a62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import subprocess
from pathlib import Path

import elasticsearch
import nox

BASE_DIR = Path(__file__).parent
Expand Down Expand Up @@ -126,6 +125,8 @@ def docs(session):
# See if we have an Elasticsearch cluster active
# to rebuild the Jupyter notebooks with.
try:
import elasticsearch

es = elasticsearch.Elasticsearch("localhost:9200")
es.info()
if not es.indices.exists("flights"):
Expand Down

0 comments on commit e0f9a62

Please sign in to comment.