Ignore directory-delete errors on AddOn uninstall.

This commit is contained in:
Casper V. Kristensen 2019-10-11 00:58:19 +02:00
parent d4aa7b73af
commit 7a0114b50c
Signed by: caspervk
GPG key ID: 289CA03790535054

View file

@ -88,7 +88,7 @@ class Addon:
logger.info("Uninstalling %s", self)
shutil.rmtree(self.download_dir, ignore_errors=True)
for dir in self.dirs:
shutil.rmtree(config.ADDONS_DIR.joinpath(dir.name))
shutil.rmtree(config.ADDONS_DIR.joinpath(dir.name), ignore_errors=True)
def find_addon_dirs(path: Path) -> List[Path]: