Skip to content

Conversation

@TRANTANKHOA
Copy link

Hi everyone, there are some new powerpoint shapes which create exceptions when running the tool. This would fix that by ignoring those "unimplemented" exceptions

@TRANTANKHOA
Copy link
Author

Hi, anyone? @yamamuteki

try:
if s.shape_type in [1, 14, 17]:
collect.append(s)
except Exception as err:
Copy link
Member

Choose a reason for hiding this comment

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

@TRANTANKHOA
[ASK] Is this intending to catch AttributeError for s.shape_type ?
I think catching Exception is too broad and wondering if we can use if statement ( e.g. if hasattr(s, 'shape_type') )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants