diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2014-06-01 08:12:47 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2014-06-01 08:14:27 -0700 |
commit | b36ab87d22dc9b4f0109d17f6f3c7740bb48a7fe (patch) | |
tree | 1f53a914aa23a569da2b39f93e7bdf40f02ed2a2 /redis/exceptions.py | |
parent | be6e501d046c9fb7ef86a47ec3b276a22997e900 (diff) | |
download | redis-py-b36ab87d22dc9b4f0109d17f6f3c7740bb48a7fe.tar.gz |
updated Lock class:
* now uses unique string tokens to claim lock ownership
* added extend() method to extend the timeout on an already acquired lock
Diffstat (limited to 'redis/exceptions.py')
-rw-r--r-- | redis/exceptions.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/redis/exceptions.py b/redis/exceptions.py index 6ab5a6e..a8518c7 100644 --- a/redis/exceptions.py +++ b/redis/exceptions.py @@ -64,5 +64,8 @@ class ReadOnlyError(ResponseError): pass -class LockError(RedisError): +class LockError(RedisError, ValueError): + "Errors acquiring or releasing a lock" + # NOTE: For backwards compatability, this class derives from ValueError. + # This was originally chosen to behave like threading.Lock. pass |