Skip to content

Commit

Permalink
[Fixed] Config can also raise PlotError
Browse files Browse the repository at this point in the history
So now is catched
  • Loading branch information
set-soft committed Jan 16, 2024
1 parent dedf297 commit 0c38aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kibot/kiplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c38aa2

Please sign in to comment.