Fixed composite lock error
This commit is contained in:
parent
8292ebf7c7
commit
18dec56c80
1 changed files with 1 additions and 3 deletions
|
|
@ -52,9 +52,7 @@ class CompositeLock(object):
|
||||||
if all(result):
|
if all(result):
|
||||||
return result
|
return result
|
||||||
else:
|
else:
|
||||||
msg = "Unable to acquire all locks {}.".format(self.locks)
|
raise LockError('ACQUIRE_ERROR', self)
|
||||||
logging.error(msg)
|
|
||||||
raise ThreadError(msg)
|
|
||||||
|
|
||||||
def __exit__(self, *args):
|
def __exit__(self, *args):
|
||||||
for lock in self.locks:
|
for lock in self.locks:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue