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