From eea88da8b78e1c0e3c8403f8ae756a7716a4abc1 Mon Sep 17 00:00:00 2001 From: Jean Lopin <38790380+Ankhas@users.noreply.github.com> Date: Mon, 2 May 2022 11:03:37 +0200 Subject: [PATCH] Rename 'update_supported_erros' to 'update_supported_errors' in Retry module (#2144) --- redis/connection.py | 4 ++-- redis/retry.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/redis/connection.py b/redis/connection.py index 0f97361e6e..ecbd32fc41 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -563,7 +563,7 @@ def __init__( # deep-copy the Retry object as it is mutable self.retry = copy.deepcopy(retry) # Update the retry's supported errors with the specified errors - self.retry.update_supported_erros(retry_on_error) + self.retry.update_supported_errors(retry_on_error) else: self.retry = Retry(NoBackoff(), 0) self.health_check_interval = health_check_interval @@ -1099,7 +1099,7 @@ def __init__( # deep-copy the Retry object as it is mutable self.retry = copy.deepcopy(retry) # Update the retry's supported errors with the specified errors - self.retry.update_supported_erros(retry_on_error) + self.retry.update_supported_errors(retry_on_error) else: self.retry = Retry(NoBackoff(), 0) self.health_check_interval = health_check_interval diff --git a/redis/retry.py b/redis/retry.py index 57be971b4f..606443053e 100644 --- a/redis/retry.py +++ b/redis/retry.py @@ -24,7 +24,7 @@ def __init__( self._retries = retries self._supported_errors = supported_errors - def update_supported_erros(self, specified_errors: list): + def update_supported_errors(self, specified_errors: list): """ Updates the supported errors with the specified error types """