The redis_queue parameter is not necessarily defined on the app config
This commit is contained in:
parent
775478fff0
commit
211025cedb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue