Skip to content

Commit 70b90d2

Browse files
authored
Error message fix
1 parent 2a94d57 commit 70b90d2

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

core/download.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,9 @@ def download_from_drive(model, custom_model, run_path):
3939
quiet=False,
4040
)
4141
if not os.path.exists(zip_path):
42-
os.rmdir(os.path.join(run_path, "models", drive_id))
4342
return ("Model download failed", None, None)
4443
if os.stat(zip_path).st_size < 16:
4544
os.remove(zip_path)
46-
os.rmdir(os.path.join(run_path, "models", drive_id))
4745
return ("Model zip is empty", None, None)
4846
os.mkdir(os.path.join(run_path, "models", drive_id))
4947
with zipfile.ZipFile(zip_path, "r") as zip_ref:

0 commit comments

Comments
 (0)