From b22b40028b89d29602b869633be708d152c724e2 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 1 Feb 2022 00:42:09 -0500 Subject: [PATCH] fix data attribute --- VERSION | 2 +- modules/meta.py | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 07f05721..ee719885 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.15.1-develop31 +1.15.1-develop32 diff --git a/modules/meta.py b/modules/meta.py index f85dedca..5eb01236 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -277,9 +277,12 @@ class MetadataFile(DataFile): elif auto_type == "actor": auto_list = {} people = {} - actor_data = util.parse("Config", "data", dynamic, parent=map_name, methods=methods, datatype="dict") - actor_depth = util.parse("Config", "actor_depth", actor_data, parent="data", datatype="int", default=3, minimum=1) - actor_minimum = util.parse("Config", "actor_minimum", actor_data, parent="data", datatype="int", default=3, minimum=1) + if "data" in methods: + actor_data = util.parse("Config", "data", dynamic, parent=map_name, methods=methods, datatype="dict") + else: + raise Failed(f"Config Error: {map_name} data attribute not found") + actor_depth = util.parse("Config", "actor_depth", actor_data, parent=f"{map_name} data", datatype="int", default=3, minimum=1) + actor_minimum = util.parse("Config", "actor_minimum", actor_data, parent=f"{map_name} data", datatype="int", default=3, minimum=1) if not all_items: all_items = library.get_all() for i, item in enumerate(all_items, 1):