Fix name 'exit' is not defined (#107)

This commit is contained in:
KnugiHK
2025-04-08 22:35:16 +08:00
parent c56682ff8d
commit 09503069b7
3 changed files with 4 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ import zlib
import concurrent.futures
from typing import Tuple, Union
from hashlib import sha256
from sys import exit
from Whatsapp_Chat_Exporter.utility import CRYPT14_OFFSETS, Crypt, DbType
try:

View File

@@ -4,6 +4,7 @@ import shutil
import sqlite3
import os
import getpass
from sys import exit
from Whatsapp_Chat_Exporter.utility import WhatsAppIdentifier
from Whatsapp_Chat_Exporter.bplist import BPListReader
try:
@@ -151,7 +152,7 @@ class BackupExtractor:
"Perhapse you enabled end-to-end encryption for the backup? "
"See https://wts.knugi.dev/docs.html?dest=iose2e"
)
exit()
exit(1)
else:
shutil.copyfile(wts_db_path, self.identifiers.MESSAGE)

View File

@@ -3,6 +3,7 @@ import javaobj
import zlib
from Crypto.Cipher import AES
from hashlib import sha256
from sys import exit
def _generate_hmac_of_hmac(key_stream):