[Fixed] Config can also raise PlotError

So now is catched
This commit is contained in:
Salvador E. Tropea 2024-01-16 07:31:59 -03:00
parent dedf2970aa
commit 0c38aa2c64
1 changed files with 1 additions and 1 deletions

View File

@ -454,7 +454,7 @@ def config_output(out, dry=False, dont_stop=False):
ok = True
try:
out.config(None)
except KiPlotConfigurationError as e:
except (KiPlotConfigurationError, PlotError) as e:
msg = "In section '"+out.name+"' ("+out.type+"): "+str(e)
GS.exit_with_error(msg, DONT_STOP if dont_stop else EXIT_BAD_CONFIG)
ok = False