diff --git a/es.py b/es.py
index 155a20154f844efa5436f26b5b092c9ee17027e1_ZXMucHk=..e6db12c7be3355f705dedfcc39329c1b85850200_ZXMucHk= 100644
--- a/es.py
+++ b/es.py
@@ -110,7 +110,7 @@
 
     """
     try:
-        if not es.indices.exists(index=index_name):
+        if index_name and not es.indices.exists(index=index_name):
             es.indices.create(index=index_name,
                               body=settings)
     except (ConnectionError, ProtocolError):