Don't create failed file if no downloads failed
This commit is contained in:
parent
2185a1d235
commit
10bd93fb03
|
@ -50,5 +50,6 @@ for category in os.listdir('Links'):
|
|||
failed.append(name)
|
||||
|
||||
# Output failed downloads
|
||||
print(failed)
|
||||
print(failed, file=open('failed', 'w'))
|
||||
if len(failed) > 0:
|
||||
print(failed)
|
||||
print(failed, file=open('failed', 'w'))
|
||||
|
|
Loading…
Reference in a new issue