From 87c3f03719437781aabd7bdb6b0d5064c529f14b Mon Sep 17 00:00:00 2001 From: alfrix Date: Sat, 11 Mar 2023 16:40:06 -0600 Subject: [PATCH] fix issues caused by dfe1ac8d fix #924 fix #923 --- ks_includes/printer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ks_includes/printer.py b/ks_includes/printer.py index 143a11fc..616f8567 100644 --- a/ks_includes/printer.py +++ b/ks_includes/printer.py @@ -153,11 +153,14 @@ class Printer: return [] def get_config_section(self, section): + return self.config[section] if section in self.config else False + + def get_macro(self, macro): return next( ( self.config[key] for key in self.config.keys() - if key.find(section) > -1 + if key.find(macro) > -1 ), False, )