Skip to content
Snippets Groups Projects
Commit 905a71db authored by Manon Blanco's avatar Manon Blanco Committed by Mélodie
Browse files

Do not download images if they already exist

parent e473fbe3
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,9 @@ class EntityType(NamedTuple):
def download_image(element: Element, im_path: Path):
if im_path.exists():
return im_path
tries = 1
# retry loop
while True:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment