diff --git a/openflexure_microscope/lock.py b/openflexure_microscope/lock.py index af040cd1..2851e1f5 100644 --- a/openflexure_microscope/lock.py +++ b/openflexure_microscope/lock.py @@ -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: