handle missing zip file

This commit is contained in:
cwilvx
2025-08-29 14:14:12 +03:00
parent 7450324514
commit bfa9d6b7fc
3 changed files with 257 additions and 5 deletions
+4
View File
@@ -86,6 +86,10 @@ class AssetHandler:
# INFO: Locate the client.zip file using imres, extract it to the swingmusic client folder
client_zip_path = imres.files("swingmusic") / "client.zip"
if not client_zip_path.exists():
# INFO: if client path contains an index.html file, return true
if (path / "index.html").exists():
return True
log.error("Client zip could not be found. Please provide a valid path.")
return False