From 8ecf8fdb8e658f016677614b577627a753cec686 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 8 Apr 2024 14:18:19 -0400 Subject: [PATCH] [11] fix KeyError --- VERSION | 2 +- modules/meta.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 259988f5..56395c08 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.21.0-develop10 +1.21.0-develop11 diff --git a/modules/meta.py b/modules/meta.py index 04ddc311..bc35b9dd 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -394,7 +394,7 @@ class DataFile: var_name = var_key[:-7] con_var_value = util.parse(self.data_type, var_key, var_value, datatype="bool", default=False) if con_var_value: - if (var_name not in variables or variables[var_name] is None) and (var_name not in default and default[var_name] is None): + if (var_name not in variables or variables[var_name] is None) and (var_name not in default or default[var_name] is None): error_text = "- does not exist" elif (var_name in variables and variables[var_name] is not None) or (var_name in default and default[var_name] is not None): error_text = "- exists"