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__()