From f1f3ad813ac8ce405fa1ae7493f74bef7945994c Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Thu, 6 Jan 2022 16:43:49 -0500 Subject: [PATCH] fix blank warnings --- modules/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/config.py b/modules/config.py index a6022d37..1727a13b 100644 --- a/modules/config.py +++ b/modules/config.py @@ -219,8 +219,8 @@ class ConfigFile: if len(warning_message) > 0: warning_message += "\n" warning_message += f"Config Warning: Path does not exist: {os.path.abspath(p)}" - if do_print: - util.print_multiline(f"Config Warning: {warning_message}") + if do_print and warning_message: + util.print_multiline(warning_message) if len(temp_list) > 0: return temp_list else: message = "No Paths exist" elif var_type == "lower_list": return util.get_list(data[attribute], lower=True)