Merge branch 'master' of https://code.0x2620.org/0x2620/pandora_cms
This commit is contained in:
commit
da9a8d1402
1 changed files with 4 additions and 1 deletions
|
@ -64,7 +64,10 @@ if __name__ == '__main__':
|
||||||
if not os.path.exists(abspath):
|
if not os.path.exists(abspath):
|
||||||
url = 'https://%s/%s/download/source/%s' % (site, id, part)
|
url = 'https://%s/%s/download/source/%s' % (site, id, part)
|
||||||
print('downloading', abspath[len(target):])
|
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))
|
keep.append(unicodedata.normalize('NFD', abspath))
|
||||||
|
|
||||||
for root, folders, files in os.walk(target):
|
for root, folders, files in os.walk(target):
|
||||||
|
|
Loading…
Reference in a new issue