don't require "version" attribute in VTU
@@ -385,6 +385,8 @@ class VtuReader:
raise ReadError()
if root.attrib["type"] != "UnstructuredGrid":
raise ReadError()
+
+ if "version" in root.attrib:
if root.attrib["version"] not in ["0.1", "1.0"]:
raise ReadError(
"Unknown VTU file version '{}'.".format(root.attrib["version"])
