Skip to content

Commit

Permalink
Rename 'update_supported_erros' to 'update_supported_errors' in Retry…
Browse files Browse the repository at this point in the history
… module (#2144)
  • Loading branch information
Ankhas authored May 2, 2022
1 parent 40fdb15 commit eea88da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions redis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion redis/retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down

0 comments on commit eea88da

Please sign in to comment.