2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 08:16:28 +00:00

chore: indicate on cache extraction failure

This commit is contained in:
18alantom 2024-02-01 15:00:20 +05:30
parent d8ce1b3cb4
commit 863dde6acd

View File

@ -374,7 +374,9 @@ class App(AppMeta):
try: try:
tar.extractall(app_path.parent, filter=extraction_filter) tar.extractall(app_path.parent, filter=extraction_filter)
except Exception: except Exception:
logger.exception(f"Cache extraction failed for {self.app_name}") message = f"Cache extraction failed for {self.app_name}, skipping cache"
click.secho(message, fg="yellow")
logger.exception(message)
shutil.rmtree(app_path) shutil.rmtree(app_path)
return False return False