mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 14:44:29 -04:00
check data folder on startup
This commit is contained in:
parent
fafdef1e6d
commit
6e5a77e1ad
3 changed files with 6 additions and 2 deletions
|
@ -428,6 +428,7 @@ def check_dependencies() -> None:
|
|||
stderr('{red}[X] Missing some required dependencies.{reset}'.format(**ANSI))
|
||||
raise SystemExit(1)
|
||||
|
||||
def check_data_folder() -> None:
|
||||
if HAS_INVALID_DB:
|
||||
stderr('{red}[X] No archive data found in:{reset} {}'.format(OUTPUT_DIR, **ANSI))
|
||||
stderr(' Are you running archivebox in the right folder?')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue