continue if download fails
This commit is contained in:
parent
09b68b9f6f
commit
52057a8880
1 changed files with 4 additions and 1 deletions
|
@ -64,7 +64,10 @@ if __name__ == '__main__':
|
|||
if not os.path.exists(abspath):
|
||||
url = 'https://%s/%s/download/source/%s' % (site, id, part)
|
||||
print('downloading', abspath[len(target):])
|
||||
api.save_url(url, abspath)
|
||||
try:
|
||||
api.save_url(url, abspath)
|
||||
except:
|
||||
print('failed to download', url)
|
||||
keep.append(unicodedata.normalize('NFD', abspath))
|
||||
|
||||
for root, folders, files in os.walk(target):
|
||||
|
|
Loading…
Reference in a new issue