Commit dc3672b9 authored by Lukas Riedel's avatar Lukas Riedel

fixed a bug in VTKFile.py where 'root' was not defined

parent e7114b60
......@@ -59,7 +59,7 @@ class VTKFile:
else:
raise RuntimeError("Problem reading {0}: XML root attribute 'type' must "
"either be 'StructuredGrid' or 'UnstructuredGrid' "
"(is: {1})".format(self.path,root.attrib["type"]))
"(is: {1})".format(self.path,xml_root.attrib["type"]))
self.grid = grid
return grid
......
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