Skip to content

Commit

Permalink
check for self.metadata is None
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanklut committed Nov 22, 2023
1 parent 28bf208 commit b0b339c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions page_xml/xmlPAGE.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ def add_processing_step(self, git_hash: str, uuid: str, cfg: CfgNode, whitelist:
raise TypeError(f"cfg is None")
if whitelist is None:
raise TypeError(f"whitelist is None")
if self.metadata is None:
raise TypeError(f"self.metadata is None")

processing_step = ET.SubElement(self.metadata, "MetadataItem")
processing_step.attrib = {
Expand Down

0 comments on commit b0b339c

Please sign in to comment.