Prepare for porting

This commit is contained in:
KnugiHK
2022-12-21 20:16:37 +08:00
parent d9a77e0eec
commit 41d3659269
2 changed files with 543 additions and 1 deletions

View File

@@ -139,7 +139,7 @@ def main():
"Possibly incorrect offsets used in decryption.")
exit(4)
else:
print("Unknown error occurred.")
print("Unknown error occurred.", error)
exit(5)
if options.wa is None:
contact_db = "wa.db"
@@ -153,6 +153,7 @@ def main():
if os.path.isfile(contact_db):
with sqlite3.connect(contact_db) as db:
db.row_factory = sqlite3.Row
contacts(db, data)
elif options.iphone:
@@ -178,6 +179,7 @@ def main():
if os.path.isfile(msg_db):
with sqlite3.connect(msg_db) as db:
db.row_factory = sqlite3.Row
messages(db, data)
media(db, data, options.media)
vcard(db, data)