imip-agent

Changeset

714:d3277493e1fe
2015-09-10 Paul Boddie raw files shortlog changelog graph Handle lock removal attempts given the presence of lock subdirectories.
imiptools/filesys.py (file)
     1.1 --- a/imiptools/filesys.py	Thu Sep 10 00:27:50 2015 +0200
     1.2 +++ b/imiptools/filesys.py	Thu Sep 10 00:47:16 2015 +0200
     1.3 @@ -214,7 +214,7 @@
     1.4              else:
     1.5                  self.remove_lock_dir(*parts)
     1.6          except OSError, exc:
     1.7 -            if exc.errno != errno.ENOENT:
     1.8 +            if exc.errno not in (errno.ENOENT, errno.ENOTEMPTY):
     1.9                  raise
    1.10  
    1.11  # vim: tabstop=4 expandtab shiftwidth=4