[Fixed] KiPlotConfigurationError is more specific than KiPlotError
This commit is contained in:
parent
cf88b27dde
commit
9b87aabd9b
|
|
@ -492,16 +492,18 @@ def run_output(out, dont_stop=False):
|
||||||
try:
|
try:
|
||||||
out.run(get_output_dir(out.dir, out))
|
out.run(get_output_dir(out.dir, out))
|
||||||
out._done = True
|
out._done = True
|
||||||
except (PlotError, KiPlotError) as e:
|
|
||||||
logger.error("In output `"+str(out)+"`: "+str(e))
|
|
||||||
if not dont_stop:
|
|
||||||
exit(PLOT_ERROR)
|
|
||||||
except KiPlotConfigurationError as e:
|
except KiPlotConfigurationError as e:
|
||||||
msg = "In section '"+out.name+"' ("+out.type+"): "+str(e)
|
msg = "In section '"+out.name+"' ("+out.type+"): "+str(e)
|
||||||
if dont_stop:
|
if dont_stop:
|
||||||
logger.error(msg)
|
logger.error(msg)
|
||||||
else:
|
else:
|
||||||
config_error(msg)
|
config_error(msg)
|
||||||
|
except (PlotError, KiPlotError) as e:
|
||||||
|
msg = "In output `"+str(out)+"`: "+str(e)
|
||||||
|
if dont_stop:
|
||||||
|
logger.error(msg)
|
||||||
|
else:
|
||||||
|
GS.exit_with_error(msg, PLOT_ERROR)
|
||||||
except KiConfError as e:
|
except KiConfError as e:
|
||||||
ki_conf_error(e)
|
ki_conf_error(e)
|
||||||
except SystemExit:
|
except SystemExit:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue