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 {} )