mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-02-23 00:54:31 +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:
|
||||
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:
|
||||
print("Done")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user