mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-26 13:49:21 +00:00
Handle error for invalid zip file (#494)
This commit is contained in:
parent
b682655e56
commit
c3a4bf876f
@ -185,6 +185,7 @@ def unzip_file(file_name, member=False, members=False):
|
||||
f"unzip -d {server_info['image_dir']} -n -j "
|
||||
f"{server_info['image_dir']}/{file_name}"
|
||||
))
|
||||
if members:
|
||||
for path in members:
|
||||
if path.endswith(PROPERTIES_SUFFIX):
|
||||
name = PurePath(path).name
|
||||
|
Loading…
Reference in New Issue
Block a user