fix when list emty by start of wirepy

This commit is contained in:
Désiré Werner Menrath 2025-04-22 17:11:46 +02:00
parent 6c0662c62c
commit c220951781
2 changed files with 9 additions and 5 deletions

View File

@ -102,12 +102,16 @@ class Create:
text=True,
check=True,
)
# print(process.stdout)
if process.returncode == 0:
print("File successfully decrypted...")
path = Path.home() / ".config/wire_py/"
file_in_path = list(path.rglob("*.dat"))
if file_in_path:
if process.returncode == 0:
print("File successfully decrypted...")
else:
print(f"Error with the following code... {process.returncode}")
else:
print(f"Error with the following code... {process.returncode}")
print(_("Ready for import"))
@staticmethod
def encrypt():
"""