[Fixed] Config can also raise PlotError
So now is catched
This commit is contained in:
parent
dedf2970aa
commit
0c38aa2c64
|
|
@ -454,7 +454,7 @@ def config_output(out, dry=False, dont_stop=False):
|
||||||
ok = True
|
ok = True
|
||||||
try:
|
try:
|
||||||
out.config(None)
|
out.config(None)
|
||||||
except KiPlotConfigurationError as e:
|
except (KiPlotConfigurationError, PlotError) as e:
|
||||||
msg = "In section '"+out.name+"' ("+out.type+"): "+str(e)
|
msg = "In section '"+out.name+"' ("+out.type+"): "+str(e)
|
||||||
GS.exit_with_error(msg, DONT_STOP if dont_stop else EXIT_BAD_CONFIG)
|
GS.exit_with_error(msg, DONT_STOP if dont_stop else EXIT_BAD_CONFIG)
|
||||||
ok = False
|
ok = False
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue