Commits

Etienne Perot committed f1fb1ce

Ensure lock is always released

Comments (0)

Files changed (1)

 		thr = threading.Thread(target=self.crush)
 		if Crusher.enqueue:
 			Crusher.crushingProcess.acquire()
-			thr.run()
+			try:
+				thr.run()
+			except:
+				print('Error while crushing', self.getPath())
 			Crusher.crushingProcess.release()
 		else:
 			thr.start()