handle none notes_text_frame

This commit is contained in:
Bruno Rigal 2025-06-10 13:13:46 +00:00
parent 6613b9e98b
commit 1b401a4730

View File

@ -423,6 +423,7 @@ class MsPowerpointDocumentBackend(DeclarativeDocumentBackend, PaginatedDocumentB
# Handle notes slide # Handle notes slide
if slide.has_notes_slide: if slide.has_notes_slide:
notes_slide = slide.notes_slide notes_slide = slide.notes_slide
if notes_slide.notes_text_frame is not None:
notes_text = notes_slide.notes_text_frame.text.strip() notes_text = notes_slide.notes_text_frame.text.strip()
if notes_text: if notes_text:
bbox = BoundingBox(l=0, t=0, r=0, b=0) bbox = BoundingBox(l=0, t=0, r=0, b=0)