Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redis没有密码配置的情况 #2293

Merged
merged 8 commits into from
Sep 13, 2023
4 changes: 2 additions & 2 deletions sql/engines/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_connection(self, db_name=None):
return redis.cluster.RedisCluster(
host=self.host,
port=self.port,
password=self.password,
password=self.password or None,
encoding_errors="ignore",
decode_responses=True,
socket_connect_timeout=10,
Expand All @@ -40,7 +40,7 @@ def get_connection(self, db_name=None):
host=self.host,
port=self.port,
db=db_name,
password=self.password,
password=self.password or None,
encoding_errors="ignore",
decode_responses=True,
socket_connect_timeout=10,
Expand Down