Skip to content

Commit

Permalink
chore: indicate on cache extraction failure
Browse files Browse the repository at this point in the history
  • Loading branch information
18alantom committed Feb 1, 2024
1 parent d8ce1b3 commit 863dde6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bench/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,9 @@ def get_cached(self) -> bool:
try:
tar.extractall(app_path.parent, filter=extraction_filter)
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)
return False

Expand Down

0 comments on commit 863dde6

Please sign in to comment.