summaryrefslogtreecommitdiff
path: root/redis/asyncio/lock.py
diff options
context:
space:
mode:
authorDavid Gilman <dgilman@aidentified.com>2022-12-14 04:18:41 -0500
committerGitHub <noreply@github.com>2022-12-14 11:18:41 +0200
commit3fb65de645bf4dd1beb8e893bdaa2c4766bbd1fa (patch)
treed5074882a70d502c91122f252788f27f1670901e /redis/asyncio/lock.py
parent6487f9555ba2d08083a081df9b65b642427361fa (diff)
downloadredis-py-3fb65de645bf4dd1beb8e893bdaa2c4766bbd1fa.tar.gz
Combine auto-concatenated strings (#2482)
Diffstat (limited to 'redis/asyncio/lock.py')
-rw-r--r--redis/asyncio/lock.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/redis/asyncio/lock.py b/redis/asyncio/lock.py
index 7f45c8b..2f78d69 100644
--- a/redis/asyncio/lock.py
+++ b/redis/asyncio/lock.py
@@ -259,7 +259,7 @@ class Lock:
keys=[self.name], args=[expected_token], client=self.redis
)
):
- raise LockNotOwnedError("Cannot release a lock" " that's no longer owned")
+ raise LockNotOwnedError("Cannot release a lock that's no longer owned")
def extend(
self, additional_time: float, replace_ttl: bool = False
@@ -289,7 +289,7 @@ class Lock:
client=self.redis,
)
):
- raise LockNotOwnedError("Cannot extend a lock that's" " no longer owned")
+ raise LockNotOwnedError("Cannot extend a lock that's no longer owned")
return True
def reacquire(self) -> Awaitable[bool]:
@@ -309,5 +309,5 @@ class Lock:
keys=[self.name], args=[self.local.token, timeout], client=self.redis
)
):
- raise LockNotOwnedError("Cannot reacquire a lock that's" " no longer owned")
+ raise LockNotOwnedError("Cannot reacquire a lock that's no longer owned")
return True