mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-08 03:18:28 +03:00
new check for edge case
This commit is contained in:
@@ -59,6 +59,9 @@ class ThumbnailEnricher(Enricher):
|
||||
).run()
|
||||
|
||||
try:
|
||||
if not os.path.exists(output_path):
|
||||
logger.info(f"thumbnail {index} for media {m.filename} was not created")
|
||||
continue
|
||||
thumbnails_media.append(
|
||||
Media(filename=output_path)
|
||||
.set("id", f"thumbnail_{index}")
|
||||
|
||||
Reference in New Issue
Block a user