mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-24 15:01:36 +00:00
Handle the FileNotFoundError in decryption (#98)
This commit is contained in:
@@ -37,7 +37,10 @@ def extract_encrypted(base_dir, password, identifiers, decrypt_chunk_size):
|
|||||||
)
|
)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
print("Failed to decrypt backup: incorrect password?")
|
print("Failed to decrypt backup: incorrect password?")
|
||||||
exit()
|
exit(7)
|
||||||
|
except FileNotFoundError:
|
||||||
|
print("Essential WhatsApp files are missing from the iOS backup.")
|
||||||
|
exit(6)
|
||||||
else:
|
else:
|
||||||
print("Done")
|
print("Done")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user