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"],