[bluesky] handle exceptions during file extraction

This commit is contained in:
Mike Fährmann
2025-10-08 10:39:51 +02:00
parent a4e0091b25
commit ff0728dcd3
2 changed files with 17 additions and 4 deletions

View File

@@ -150,9 +150,15 @@ class BlueskyExtractor(Extractor):
if "images" in media:
for image in media["images"]:
files.append(self._extract_media(image, "image"))
try:
files.append(self._extract_media(image, "image"))
except Exception:
pass
if "video" in media and self.videos:
files.append(self._extract_media(media, "video"))
try:
files.append(self._extract_media(media, "video"))
except Exception:
pass
post["count"] = len(files)
return files