Check first the configuration of the Redis plugin and then that of the backend.

This commit is contained in:
Fabio Manganiello 2023-07-24 00:26:49 +02:00
parent 315a89fb65
commit 3e3d47aa44
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -573,8 +573,8 @@ def get_redis(*args, **kwargs) -> Redis:
if not (args or kwargs): if not (args or kwargs):
kwargs = ( kwargs = (
(Config.get('backend.redis') or {}).get('redis_args', {}) Config.get('redis')
or Config.get('redis') or (Config.get('backend.redis') or {}).get('redis_args', {})
or {} or {}
) )