From 0c38aa2c64fe2da96f9c7c5f12d8a4d5a157171a Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 16 Jan 2024 07:31:59 -0300 Subject: [PATCH] [Fixed] Config can also raise PlotError So now is catched --- kibot/kiplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibot/kiplot.py b/kibot/kiplot.py index 3b50012a..5cf3fa4c 100644 --- a/kibot/kiplot.py +++ b/kibot/kiplot.py @@ -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