imiptools/filesys.py | raw changeset files shortlog |
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