From 5c450089a5b6e809717243d00d72f913b9e2aac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=2E=20Armando=20Sol=C3=A9?= Date: Tue, 17 Oct 2023 16:15:28 +0200 Subject: [PATCH] Adapt to blissdata --- PyMca5/PyMcaCore/RedisTools.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/PyMca5/PyMcaCore/RedisTools.py b/PyMca5/PyMcaCore/RedisTools.py index 27922dc7a..e509d726d 100644 --- a/PyMca5/PyMcaCore/RedisTools.py +++ b/PyMca5/PyMcaCore/RedisTools.py @@ -33,8 +33,13 @@ _logger = logging.getLogger(__name__) from bliss.config import get_sessions_list -from bliss.config.settings import scan as rdsscan -from bliss.data.node import get_node, get_nodes +try: + from blissdata.settings import scan as rdsscan + from blissdata.data.node import get_node, get_nodes +except ImportError: + _logger.info("Trying deprecated access to Redis") + from bliss.config.settings import scan as rdsscan + from bliss.data.node import get_node, get_nodes _NODE_TYPES = [ "channel", "lima",