capture missing --vtk option
This commit is contained in:
parent
c365e1995c
commit
babde13c6a
|
@ -51,7 +51,7 @@ datainfo = { # lis
|
|||
'label':[]},
|
||||
}
|
||||
|
||||
if not os.path.exists(options.vtk):
|
||||
if options.vtk == None or not os.path.exists(options.vtk):
|
||||
parser.error('VTK file does not exist')
|
||||
|
||||
if os.path.splitext(options.vtk)[1] == '.vtu':
|
||||
|
|
Loading…
Reference in New Issue