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):
|
||||
return result
|
||||
else:
|
||||
msg = "Unable to acquire all locks {}.".format(self.locks)
|
||||
logging.error(msg)
|
||||
raise ThreadError(msg)
|
||||
raise LockError('ACQUIRE_ERROR', self)
|
||||
|
||||
def __exit__(self, *args):
|
||||
for lock in self.locks:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue