Skip to content

fix pptx bug - #119

Merged
EnjoyBacon7 merged 1 commit into
devfrom
fix-pptx
Oct 22, 2025
Merged

fix pptx bug#119
EnjoyBacon7 merged 1 commit into
devfrom
fix-pptx

Conversation

@Ahmath-Gadji

Copy link
Copy Markdown
Collaborator
  • Fix PPTXLoader by skipping unsupported shapes that are not yet implemented in python-pptx.

    • The issue occurred with certain text blocks. The information is not lost — the element is simply not recognized as a picture, table, or chart, but its text content is still correctly extracted (see this code).
  • Fix HTML table conversion to Markdown.

@Ahmath-Gadji Ahmath-Gadji linked an issue Oct 22, 2025 that may be closed by this pull request
@EnjoyBacon7
EnjoyBacon7 merged commit a624d98 into dev Oct 22, 2025
1 check passed
except ValueError as e:
# Handle the specific error for unsupported chart types
if "unsupported plot type" in str(e):
return "\n\n[unsupported chart]\n\n"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the handling of this exception is the same as the generic Exception, there is no point to have a specific ValueError exception, as I guess it inherits from Exception?

@Ahmath-Gadji Ahmath-Gadji added the fix Fix issue label Nov 13, 2025
@Ahmath-Gadji
Ahmath-Gadji deleted the fix-pptx branch November 21, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Fix issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NotImplementedError when accessing shape_type in PPTXLoader

3 participants