From 3e3d47aa4460834de5730a370c4472b1db0ba957 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 24 Jul 2023 00:26:49 +0200 Subject: [PATCH] Check first the configuration of the Redis plugin and then that of the backend. --- platypush/utils/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/utils/__init__.py b/platypush/utils/__init__.py index 12547b988..378bbb9bd 100644 --- a/platypush/utils/__init__.py +++ b/platypush/utils/__init__.py @@ -573,8 +573,8 @@ def get_redis(*args, **kwargs) -> Redis: if not (args or kwargs): kwargs = ( - (Config.get('backend.redis') or {}).get('redis_args', {}) - or Config.get('redis') + Config.get('redis') + or (Config.get('backend.redis') or {}).get('redis_args', {}) or {} )