rhodecode_tools: don't fail on missing package. It's optional

This commit is contained in:
RhodeCode Admin 2023-03-06 23:20:35 +01:00
parent ad128ba07e
commit 2bd5fdf4bd

View file

@ -38,8 +38,11 @@ ES_VERSION_6 = '6'
# for legacy reasons we keep 2 compat as default
DEFAULT_ES_VERSION = ES_VERSION_2
from rhodecode_tools.lib.fts_index.elasticsearch_engine_6 import \
ES_CONFIG # pragma: no cover
try:
from rhodecode_tools.lib.fts_index.elasticsearch_engine_6 import ES_CONFIG # pragma: no cover
except ImportError:
log.warning('rhodecode_tools not available, use of full text search is limited')
pass
class BaseSearcher(object):