Prevent unbound local variable error on download fail
This commit is contained in:
parent
ea335f77a6
commit
5aa35570c4
1 changed files with 2 additions and 0 deletions
|
@ -418,6 +418,8 @@ class Recipe(object):
|
|||
print('This is usually caused by a corrupt download. The file'
|
||||
' will be removed and re-downloaded on the next run.')
|
||||
remove(filename)
|
||||
return
|
||||
|
||||
root = archive.next().path.split("/")
|
||||
return root[0]
|
||||
elif filename.endswith(".zip"):
|
||||
|
|
Loading…
Add table
Reference in a new issue