Skip to content
Snippets Groups Projects

Do not download images if they already exist

Merged Manon Blanco requested to merge keep-existing-images into main
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -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:
Loading