Prevent unbound local variable error on download fail

This commit is contained in:
Zen-CODE 2016-01-14 08:19:15 +02:00
parent ea335f77a6
commit 5aa35570c4

View file

@ -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"):