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:
parent
d8ce1b3cb4
commit
863dde6acd
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user