From 8c2d5b573a0be78e958df26c074d91db51a974a3 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 13 Mar 2023 11:08:20 -0400 Subject: [PATCH] [130] fix hash error --- VERSION | 2 +- modules/meta.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index ff9bb40d..f262fb21 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.3-develop129 +1.18.3-develop130 diff --git a/modules/meta.py b/modules/meta.py index 84ca15f8..44f0079f 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -631,9 +631,9 @@ class MetadataFile(DataFile): elif "styles" not in set_data: raise Failed("Set Data must have the styles attribute") styles = util.parse("Set Data", "styles", set_data["styles"], datatype="dictlist") - if "default" not in styles: + if "default" not in styles or not styles["default"]: raise Failed("Set Data styles attribute must have a default") - if styles["default"] not in styles: + if styles["default"][0] not in styles: raise Failed(f"Set Data styles default style not found. Options: {', '.join([s for s in styles])}") use_key = None if f"use_{set_key}" in methods: