diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2019-07-26 17:12:55 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2019-07-26 17:12:55 -0700 |
commit | e57cf1a7227a596eb64696ec5b3b307b541be2fe (patch) | |
tree | 797b3b5b1ade73092bca425200b0e9a65217f3a5 | |
parent | 7a73f197b18584710c9f3b9ee8cbbadbe727bf34 (diff) | |
download | redis-py-ping-health-checks.tar.gz |
yes, we still support python 2.7ping-health-checks
-rwxr-xr-x | redis/connection.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/connection.py b/redis/connection.py index 9c659ac..b60a9fd 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -652,10 +652,10 @@ class Connection(object): self.disconnect() raise - def send_command(self, *args, check_health=True): + def send_command(self, *args, **kwargs): "Pack and send a command to the Redis server" self.send_packed_command(self.pack_command(*args), - check_health=check_health) + check_health=kwargs.get('check_health', True)) def can_read(self, timeout=0): "Poll the socket to see if there's data that can be read." |