Skip to content

Commit eea88da

Browse files
authored
Rename 'update_supported_erros' to 'update_supported_errors' in Retry module (#2144)
1 parent 40fdb15 commit eea88da

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

redis/connection.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ def __init__(
563563
# deep-copy the Retry object as it is mutable
564564
self.retry = copy.deepcopy(retry)
565565
# Update the retry's supported errors with the specified errors
566-
self.retry.update_supported_erros(retry_on_error)
566+
self.retry.update_supported_errors(retry_on_error)
567567
else:
568568
self.retry = Retry(NoBackoff(), 0)
569569
self.health_check_interval = health_check_interval
@@ -1099,7 +1099,7 @@ def __init__(
10991099
# deep-copy the Retry object as it is mutable
11001100
self.retry = copy.deepcopy(retry)
11011101
# Update the retry's supported errors with the specified errors
1102-
self.retry.update_supported_erros(retry_on_error)
1102+
self.retry.update_supported_errors(retry_on_error)
11031103
else:
11041104
self.retry = Retry(NoBackoff(), 0)
11051105
self.health_check_interval = health_check_interval

redis/retry.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(
2424
self._retries = retries
2525
self._supported_errors = supported_errors
2626

27-
def update_supported_erros(self, specified_errors: list):
27+
def update_supported_errors(self, specified_errors: list):
2828
"""
2929
Updates the supported errors with the specified error types
3030
"""

0 commit comments

Comments
 (0)