summaryrefslogtreecommitdiff
path: root/redis/exceptions.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2018-12-03 13:36:15 -0800
committerGitHub <noreply@github.com>2018-12-03 13:36:15 -0800
commitdcb68aae42a2a223c40ba9c722676004e8bbe92e (patch)
tree552498c50deef6a02d2f5e19468ab02b38bb8d0a /redis/exceptions.py
parent5784bc90717d7632eabd1e0d642a5364cea4f0c8 (diff)
parent26b3828678560fedb8c9cc04362e7c20b01d2f77 (diff)
downloadredis-py-dcb68aae42a2a223c40ba9c722676004e8bbe92e.tar.gz
Merge pull request #1095 from harlowja/lock-error-not-owned
Extend lock error for not owned special case
Diffstat (limited to 'redis/exceptions.py')
-rw-r--r--redis/exceptions.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/redis/exceptions.py b/redis/exceptions.py
index 44ab6f7..7f3034f 100644
--- a/redis/exceptions.py
+++ b/redis/exceptions.py
@@ -58,3 +58,8 @@ class LockError(RedisError, ValueError):
# NOTE: For backwards compatability, this class derives from ValueError.
# This was originally chosen to behave like threading.Lock.
pass
+
+
+class LockErrorNotOwned(LockError):
+ "Error related to lock that may have been owned being lost."
+ pass