fix in export method (remove !=0 by nemelist)
This commit is contained in:
parent
7f4fabe856
commit
b764547d16
@ -556,7 +556,7 @@ class Tunnel:
|
|||||||
try:
|
try:
|
||||||
shutil.make_archive(wg_tar, "zip", AppConfig.TEMP_DIR)
|
shutil.make_archive(wg_tar, "zip", AppConfig.TEMP_DIR)
|
||||||
with zipfile.ZipFile(f"{wg_tar}.zip", "r") as zf:
|
with zipfile.ZipFile(f"{wg_tar}.zip", "r") as zf:
|
||||||
if len(zf.namelist()) != 0:
|
if zf.namelist():
|
||||||
|
|
||||||
LxTools.msg_window(
|
LxTools.msg_window(
|
||||||
AppConfig.IMAGE_PATHS["icon_info"],
|
AppConfig.IMAGE_PATHS["icon_info"],
|
||||||
@ -566,7 +566,7 @@ class Tunnel:
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
logging.error(
|
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(
|
LxTools.msg_window(
|
||||||
AppConfig.IMAGE_PATHS["icon_error"],
|
AppConfig.IMAGE_PATHS["icon_error"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user