ImageDownload function should have a retry mechanism

Yoann Schneider
2024-10-07T09:03:36Z

This would be to avoid failing on folders because of an issue during download.

We should a retry mechanism, just like we do on API calls, to catch Pillow errors like UnidentifiedImageError. This means that the arkindex_cli.export.utils.image_download must return the loaded image instead of the path.

Refs https://redmine.teklia.com/issues/8864