MCPcopy
hub / github.com/redis/redis-py / LockError

Class LockError

redis/exceptions.py:107–116  ·  view source on GitHub ↗

Errors acquiring or releasing a lock

Source from the content-addressed store, hash-verified

105
106
107class LockError(RedisError, ValueError):
108 "Errors acquiring or releasing a lock"
109
110 # NOTE: For backwards compatibility, this class derives from ValueError.
111 # This was originally chosen to behave like threading.Lock.
112
113 def __init__(self, message=None, lock_name=None):
114 super().__init__(message)
115 self.message = message
116 self.lock_name = lock_name
117
118
119class LockNotOwnedError(LockError):

Callers 8

__enter__Method · 0.90
releaseMethod · 0.90
extendMethod · 0.90
reacquireMethod · 0.90
__aenter__Method · 0.90
releaseMethod · 0.90
extendMethod · 0.90
reacquireMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected