From 31d0c7d87c730a7f9785af3390a751b5360bffbf Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 1 Dec 2021 15:13:12 -0300 Subject: [PATCH] Better error for unknown global variant. --- kibot/config_reader.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kibot/config_reader.py b/kibot/config_reader.py index a610c73d..50394588 100644 --- a/kibot/config_reader.py +++ b/kibot/config_reader.py @@ -360,7 +360,10 @@ class CfgYamlReader(object): config_error("YAML config needs `kibot.version`.") # Solve the global variant if GS.global_variant: - GS.solved_global_variant = RegOutput.check_variant(GS.global_variant) + try: + GS.solved_global_variant = RegOutput.check_variant(GS.global_variant) + except KiPlotConfigurationError as e: + config_error("In global section: "+str(e)) return outputs