fix: 无效的 es 报 500

This commit is contained in:
xinwen
2021-08-10 17:53:34 +08:00
committed by 老广
parent 998ee2ee14
commit bc9bd30203

View File

@@ -43,6 +43,9 @@ class CommandStore():
self.is_new_index_type()
def is_new_index_type(self):
if not self.ping(timeout=3):
return
# 检测索引是不是新的类型
data = self.es.indices.get_mapping(self.index)
try: