From 1aa8d1f5a851685843cbdc565337b697bbb8bf9f Mon Sep 17 00:00:00 2001 From: Marcel Bargull Date: Sat, 16 Mar 2024 09:51:05 +0100 Subject: [PATCH] Use .meta in MetaData.get_value for correct types Fixes https://github.com/mamba-org/boa/issues/388 Signed-off-by: Marcel Bargull --- boa/core/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boa/core/metadata.py b/boa/core/metadata.py index ecf92145..c82aaf86 100644 --- a/boa/core/metadata.py +++ b/boa/core/metadata.py @@ -149,7 +149,7 @@ def get_value(self, in_key: str, default: Any = None, autotype=True) -> Any: if autotype and default is None and FIELDS.get(section, {}).get(key): default = FIELDS[section][key]() - section = self.output.sections.get(section, {}) + section = self.meta.get(section, {}) if isinstance(section, list): return section[int(num)].get(key, default) else: