mkdocs-multirepo-plugin icon indicating copy to clipboard operation
mkdocs-multirepo-plugin copied to clipboard

on_build_error should honor cleanup setting

Open analog-cbarber opened this issue 2 years ago • 0 comments
trafficstars

On a build error the temp directory is removed regardless of whether the cleanup config option is enabled. This hampers debugging.

Should it be something like the following?

    def on_build_error(self, error):
        if self.temp_dir and self.config.get("cleanup"):
            shutil.rmtree(str(self.temp_dir))

analog-cbarber avatar Sep 13 '23 15:09 analog-cbarber