mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-26 07:51:31 +00:00
Prepare for porting
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user