mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Ignore exception of empty index. (#5030)
### What problem does this PR solve? ### Type of change - [x] Refactoring
This commit is contained in:
@ -113,7 +113,7 @@ class ESConnection(DocStoreConnection):
|
||||
except Exception:
|
||||
logger.exception("ESConnection.deleteIdx error %s" % (indexName))
|
||||
|
||||
def indexExist(self, indexName: str, knowledgebaseId: str) -> bool:
|
||||
def indexExist(self, indexName: str, knowledgebaseId: str = None) -> bool:
|
||||
s = Index(indexName, self.es)
|
||||
for i in range(ATTEMPT_TIME):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user