Ignore directory-delete errors on AddOn uninstall.
This commit is contained in:
parent
d4aa7b73af
commit
7a0114b50c
|
@ -88,7 +88,7 @@ class Addon:
|
||||||
logger.info("Uninstalling %s", self)
|
logger.info("Uninstalling %s", self)
|
||||||
shutil.rmtree(self.download_dir, ignore_errors=True)
|
shutil.rmtree(self.download_dir, ignore_errors=True)
|
||||||
for dir in self.dirs:
|
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]:
|
def find_addon_dirs(path: Path) -> List[Path]:
|
||||||
|
|
Loading…
Reference in a new issue