mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Update pelican_import.py
Don't create empty sets in download_attachments, this might fix an issue that came in the tests.
This commit is contained in:
parent
ea1104061a
commit
2ece08afaf
1 changed files with 1 additions and 1 deletions
|
|
@ -673,7 +673,7 @@ def download_attachments(output_path, urls):
|
||||||
if not os.path.exists(full_path):
|
if not os.path.exists(full_path):
|
||||||
os.makedirs(full_path)
|
os.makedirs(full_path)
|
||||||
relpath = os.path.join(localpath, filename)
|
relpath = os.path.join(localpath, filename)
|
||||||
if url in locations[relpath]:
|
if relpath in locations and url in locations[relpath]:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
print('downloading {}'.format(filename))
|
print('downloading {}'.format(filename))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue