From f58f32aebe3406e5f2b6af7ae8fa904c3103a232 Mon Sep 17 00:00:00 2001 From: Alex Blandin <20842735+AlexBlandin@users.noreply.github.com> Date: Sun, 27 Jul 2025 15:41:24 +0100 Subject: [PATCH] Fixed None'd notes_text_frame read From error `AttributeError: 'NoneType' object has no attribute 'text'`. With this patch, the specific slidedeck that proc'd this issue parses flawlessly. --- pptx2md/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pptx2md/parser.py b/pptx2md/parser.py index edcc10a..3a5641b 100644 --- a/pptx2md/parser.py +++ b/pptx2md/parser.py @@ -267,7 +267,7 @@ def parse(config: ConversionConfig, prs: Presentation) -> ParsedPresentation: else: result_slide = GeneralSlide(elements=process_shapes(config, shapes, idx + 1)) - if not config.disable_notes and slide.has_notes_slide: + if not config.disable_notes and slide.has_notes_slide and slide.notes_slide.notes_text_frame: text = slide.notes_slide.notes_text_frame.text if text: result_slide.notes.append(text)