Skip to content

Commit 12b75f2

Browse files
owndevCopilot
andauthored
Update pipelines/google/google_gemini.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: owndev <69784886+owndev@users.noreply.github.com>
1 parent 5238952 commit 12b75f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pipelines/google/google_gemini.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,9 @@ def _deduplicate_images(self, images: List[Dict[str, Any]]) -> List[Dict[str, An
285285
if h in seen:
286286
continue
287287
seen.add(h)
288-
except Exception:
289-
pass
288+
except Exception as e:
289+
# Skip images with malformed or missing data, but log for debugging.
290+
self.log.debug(f"Skipping image in deduplication due to error: {e}")
290291
result.append(part)
291292
return result
292293

0 commit comments

Comments
 (0)