From 211025cedbbe5a5298e2904f8a26cfab37eddee3 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 10 Mar 2021 11:14:56 +0100 Subject: [PATCH] The redis_queue parameter is not necessarily defined on the app config --- platypush/backend/http/app/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/http/app/utils.py b/platypush/backend/http/app/utils.py index c46511aa76..5be7e71f7f 100644 --- a/platypush/backend/http/app/utils.py +++ b/platypush/backend/http/app/utils.py @@ -23,7 +23,7 @@ _logger = None def bus(): global _bus if _bus is None: - _bus = RedisBus(redis_queue=current_app.config['redis_queue']) + _bus = RedisBus(redis_queue=current_app.config.get('redis_queue')) return _bus