Skip to content

Commit

Permalink
Add download warning on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Sep 1, 2024
1 parent 837d95d commit 8fae5bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
this_dir = Path(__file__).parent.absolute()
db_path = this_dir / "cpi.db"
if not db_path.exists():
warnings.warn(
"CPI database not found. Downloading... This may take a few minutes.",
stacklevel=2,
)
logger.info("CPI database not found. Downloading...")
Downloader().update()

Expand Down

0 comments on commit 8fae5bf

Please sign in to comment.