Merge pull request #338 from PR0M3TH3AN/codex/fix-missing-index-file-after-seed-import

Fix missing index error noise
This commit is contained in:
thePR0M3TH3AN
2025-07-06 19:08:19 -04:00
committed by GitHub

View File

@@ -376,14 +376,10 @@ class EncryptionManager:
try: try:
relative_path = Path("seedpass_entries_db.json.enc") relative_path = Path("seedpass_entries_db.json.enc")
if not (self.fingerprint_dir / relative_path).exists(): if not (self.fingerprint_dir / relative_path).exists():
logger.error( # Missing index is normal on first run
logger.info(
f"Index file '{relative_path}' does not exist in '{self.fingerprint_dir}'." f"Index file '{relative_path}' does not exist in '{self.fingerprint_dir}'."
) )
print(
colored(
f"Error: Index file '{relative_path}' does not exist.", "red"
)
)
return None return None
file_path = self.fingerprint_dir / relative_path file_path = self.fingerprint_dir / relative_path