booktype / python-ooxml

Python library for parsing .docx (Office Open XML) files
GNU Affero General Public License v3.0
52 stars 24 forks source link

Parsing properties will fail because we do not check if we have correct parent #11

Closed aerkalov closed 9 years ago

aerkalov commented 9 years ago

Parsing properties will fail because we do not check if our parent has valid attributes. We assume it does have 'ppr' attribute and we try to check if it contains certain values. Because it does not exist we fail at this point with an exception.