Skip to content
Snippets Groups Projects
Commit 06f97ecc authored by Manon Blanco's avatar Manon Blanco Committed by Manon Blanco
Browse files

Do not download images if they already exist

parent 210de96f
No related branches found
No related tags found
1 merge request!189Do not download images if they already exist
......@@ -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