Fix decryption process to skip files without valid suffixes

This commit is contained in:
whaffman 2025-07-08 21:48:01 +02:00
parent d9bd061210
commit cf890e2d5a

View File

@ -128,6 +128,7 @@ def decrypt_files(files, symmetric_key):
original_file = file.with_suffix('')
if len(original_file.suffixes) == 0:
original_file = original_file.with_suffix('.ft')
continue
try:
with open(file, 'rb') as fin, open(original_file, 'wb') as fout: