Add a potential solution for missing the database in iOS #125

This commit is contained in:
KnugiHK
2025-03-29 23:32:48 +08:00
parent d75c485a3d
commit c56682ff8d

View File

@@ -102,7 +102,11 @@ class BackupExtractor:
print("Failed to decrypt backup: incorrect password?")
exit(7)
except FileNotFoundError:
print("Essential WhatsApp files are missing from the iOS backup.")
print(
"Essential WhatsApp files are missing from the iOS backup. "
"Perhapse you enabled end-to-end encryption for the backup? "
"See https://wts.knugi.dev/docs.html?dest=iose2e"
)
exit(6)
else:
print("Done")
@@ -142,6 +146,11 @@ class BackupExtractor:
print("WhatsApp database not found.")
else:
print("WhatsApp Business database not found.")
print(
"Essential WhatsApp files are missing from the iOS backup. "
"Perhapse you enabled end-to-end encryption for the backup? "
"See https://wts.knugi.dev/docs.html?dest=iose2e"
)
exit()
else:
shutil.copyfile(wts_db_path, self.identifiers.MESSAGE)