markitdown
markitdown copied to clipboard
fix(pptx): handle missing text frames
Summary
- treat
shape.textandnotes_frame.textas empty strings when python-pptx returnsNone - avoid failing the whole PPTX conversion on malformed or third-party-generated decks
- add a regression test that patches a PPTX text frame getter to return
None
Verification
PYTHONPYCACHEPREFIX=/tmp/pycache-markitdown python3 -m py_compile packages/markitdown/src/markitdown/converters/_pptx_converter.py packages/markitdown/tests/test_module_misc.py- targeted
pytestcollection was blocked locally because this environment does not haveonnxruntime, which is imported throughmagikaduring test startup
Closes #1808