From b764547d16cb9d8f15deb561e1e5ceb3b1339724 Mon Sep 17 00:00:00 2001 From: punix Date: Sat, 24 May 2025 16:26:44 +0200 Subject: [PATCH] fix in export method (remove !=0 by nemelist) --- common_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common_tools.py b/common_tools.py index a800047..2b8bb18 100755 --- a/common_tools.py +++ b/common_tools.py @@ -556,7 +556,7 @@ class Tunnel: try: shutil.make_archive(wg_tar, "zip", AppConfig.TEMP_DIR) with zipfile.ZipFile(f"{wg_tar}.zip", "r") as zf: - if len(zf.namelist()) != 0: + if zf.namelist(): LxTools.msg_window( AppConfig.IMAGE_PATHS["icon_info"], @@ -566,7 +566,7 @@ class Tunnel: ) else: logging.error( - f"There was a mistake at creating the Zip file. File is empty." + "There was a mistake at creating the Zip file. File is empty." ) LxTools.msg_window( AppConfig.IMAGE_PATHS["icon_error"],