From 62f6b4475f4d29b07907182da8210d5103e50fc9 Mon Sep 17 00:00:00 2001 From: Benjamin Bolte Date: Tue, 18 Jun 2024 09:19:33 -0700 Subject: [PATCH] fix bug --- store/app/crud/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/app/crud/users.py b/store/app/crud/users.py index dbd08672..da276fc9 100644 --- a/store/app/crud/users.py +++ b/store/app/crud/users.py @@ -30,7 +30,7 @@ async def __aenter__(self) -> Self: *( Redis( host=settings.redis.host, - password=None if len(settings.redis.password) else settings.redis.password, + password=settings.redis.password if settings.redis.password else None, port=settings.redis.port, db=db, ).__aenter__()