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?") print("Failed to decrypt backup: incorrect password?")
exit(7) exit(7)
except FileNotFoundError: 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) exit(6)
else: else:
print("Done") print("Done")
@@ -142,6 +146,11 @@ class BackupExtractor:
print("WhatsApp database not found.") print("WhatsApp database not found.")
else: else:
print("WhatsApp Business database not found.") 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() exit()
else: else:
shutil.copyfile(wts_db_path, self.identifiers.MESSAGE) shutil.copyfile(wts_db_path, self.identifiers.MESSAGE)