specifying non-existing or invalid files is an user error
this is the standard behavior for common unix tools, no need to make an exception here
This commit is contained in:
parent
cf374a04dc
commit
6c7f7c77da
|
@ -72,9 +72,8 @@ for name in filenames:
|
||||||
virt_file = StringIO(''.join(sys.stdin.read()))
|
virt_file = StringIO(''.join(sys.stdin.read()))
|
||||||
geom = damask.Geom.from_file(virt_file)
|
geom = damask.Geom.from_file(virt_file)
|
||||||
else:
|
else:
|
||||||
try: # really needed? Why not simply fail if file does not exists etc.
|
|
||||||
geom = damask.Geom.from_file(name)
|
geom = damask.Geom.from_file(name)
|
||||||
except: continue
|
|
||||||
damask.util.report(scriptName,name)
|
damask.util.report(scriptName,name)
|
||||||
|
|
||||||
microstructure = geom.microstructure
|
microstructure = geom.microstructure
|
||||||
|
|
|
@ -69,9 +69,8 @@ for name in filenames:
|
||||||
virt_file = StringIO(''.join(sys.stdin.read()))
|
virt_file = StringIO(''.join(sys.stdin.read()))
|
||||||
geom = damask.Geom.from_file(virt_file)
|
geom = damask.Geom.from_file(virt_file)
|
||||||
else:
|
else:
|
||||||
try: # really needed? Why not simply fail if file does not exists etc.
|
|
||||||
geom = damask.Geom.from_file(name)
|
geom = damask.Geom.from_file(name)
|
||||||
except: continue
|
|
||||||
damask.util.report(scriptName,name)
|
damask.util.report(scriptName,name)
|
||||||
|
|
||||||
microstructure = geom.microstructure
|
microstructure = geom.microstructure
|
||||||
|
|
Loading…
Reference in New Issue