# HG changeset patch # User Paul Boddie # Date 1441838836 -7200 # Node ID d3277493e1fee618a9d25fc0bffac8beb1ccc4f3 # Parent 6b3b9902fe53e015871910f3b204c1ae56c5a006 Handle lock removal attempts given the presence of lock subdirectories. diff -r 6b3b9902fe53 -r d3277493e1fe imiptools/filesys.py --- a/imiptools/filesys.py Thu Sep 10 00:27:50 2015 +0200 +++ b/imiptools/filesys.py Thu Sep 10 00:47:16 2015 +0200 @@ -214,7 +214,7 @@ else: self.remove_lock_dir(*parts) except OSError, exc: - if exc.errno != errno.ENOENT: + if exc.errno not in (errno.ENOENT, errno.ENOTEMPTY): raise # vim: tabstop=4 expandtab shiftwidth=4