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