fixed syntax error: ’options.error’ —> ‘parser.error’ for error handling
This commit is contained in:
parent
99ffa554eb
commit
7136db1fd8
|
@ -52,7 +52,7 @@ datainfo = { # lis
|
||||||
}
|
}
|
||||||
|
|
||||||
if not os.path.exists(options.vtk):
|
if not os.path.exists(options.vtk):
|
||||||
options.error('VTK file does not exist'); sys.exit()
|
parser.error('VTK file does not exist'); sys.exit()
|
||||||
|
|
||||||
reader = vtk.vtkXMLPolyDataReader()
|
reader = vtk.vtkXMLPolyDataReader()
|
||||||
reader.SetFileName(options.vtk)
|
reader.SetFileName(options.vtk)
|
||||||
|
|
Loading…
Reference in New Issue