rhodecode_tools: don't fail on missing package. It's optional
This commit is contained in:
parent
ad128ba07e
commit
2bd5fdf4bd
1 changed files with 5 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue