Skip to content

Commit 27ebfc4

Browse files
authored
Fix typo: occured → occurred (#1315)
1 parent d127929 commit 27ebfc4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

redis/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3841,8 +3841,8 @@ def immediate_execute_command(self, *args, **options):
38413841
# indicates the user should retry this transaction.
38423842
if self.watching:
38433843
self.reset()
3844-
raise WatchError("A ConnectionError occured on while watching "
3845-
"one or more keys")
3844+
raise WatchError("A ConnectionError occurred on while "
3845+
"watching one or more keys")
38463846
# if retry_on_timeout is not set, or the error is not
38473847
# a TimeoutError, raise it
38483848
if not (conn.retry_on_timeout and isinstance(e, TimeoutError)):
@@ -4019,8 +4019,8 @@ def execute(self, raise_on_error=True):
40194019
# since this connection has died. raise a WatchError, which
40204020
# indicates the user should retry this transaction.
40214021
if self.watching:
4022-
raise WatchError("A ConnectionError occured on while watching "
4023-
"one or more keys")
4022+
raise WatchError("A ConnectionError occurred on while "
4023+
"watching one or more keys")
40244024
# if retry_on_timeout is not set, or the error is not
40254025
# a TimeoutError, raise it
40264026
if not (conn.retry_on_timeout and isinstance(e, TimeoutError)):

0 commit comments

Comments
 (0)