My application uses python-docx in production and we often get the following error:
'lxml.etree._Element' object has no attribute 'Relationship_lst'
Which comes from this piece of code docx/opc/pkgreader.py line 286 (v0.8.11):
@staticmethoddefload_from_xml(baseURI, rels_item_xml):
""" Return |_SerializedRelationships| instance loaded with the relationships contained in *rels_item_xml*. Returns an empty collection if *rels_item_xml* is |None|. """srels=_SerializedRelationships()
ifrels_item_xmlisnotNone:
rels_elm=parse_xml(rels_item_xml)
forrel_elminrels_elm.Relationship_lst:
srels._srels.append(_SerializedRelationship(baseURI, rel_elm))
returnsrels
Unfortunately, I am not able to reproduce this bug deterministically, it is quite mysterious.
The application is deployed on Google Cloud Run which somehow seems to maybe have an influence here as I have been absolutely unable to reproduce the bug locally.
The text was updated successfully, but these errors were encountered:
My application uses
python-docxin production and we often get the following error:'lxml.etree._Element' object has no attribute 'Relationship_lst'Which comes from this piece of code
docx/opc/pkgreader.pyline 286 (v0.8.11):Unfortunately, I am not able to reproduce this bug deterministically, it is quite mysterious.
The application is deployed on Google Cloud Run which somehow seems to maybe have an influence here as I have been absolutely unable to reproduce the bug locally.
The text was updated successfully, but these errors were encountered: