Commit 16a7f4f8 authored by Thomas Bernhart's avatar Thomas Bernhart
Browse files

Fix check if datastream with ID TRANSFORMED_METADATA_0 exists

parent 33ef8808
......@@ -88,7 +88,7 @@ class FoxmlReader:
def __init__(self, file):
root_element = ElementTree.parse(file).getroot()
metadata_datastream_element = _get_metadata_datastream_element(root_element)
if self.metadata_datastream_element is not None:
if metadata_datastream_element is not None:
self.metadata_datastream_element = metadata_datastream_element
self.thumbnail_datastream_element = _get_thumbnail_datastream_element(root_element)
self.accesscopy_datastream_element = _get_accesscopy_datastream_element(root_element)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment