caches: fixed wrong except
This commit is contained in:
parent
7170e63907
commit
8fe339248e
1 changed files with 1 additions and 1 deletions
|
|
@ -339,7 +339,7 @@ def get_mutex_lock(client, lock_key, lock_timeout, auto_renewal=False):
|
|||
def acquire(self, wait=True):
|
||||
try:
|
||||
return self.lock.acquire(wait)
|
||||
except redis_lock.AlreadyAquited:
|
||||
except redis_lock.AlreadyAcquired:
|
||||
return False
|
||||
|
||||
def release(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue