[130] fix hash error

pull/1343/head
meisnate12 2 years ago
parent f8f3ccbb3a
commit 8c2d5b573a

@ -1 +1 @@
1.18.3-develop129 1.18.3-develop130

@ -631,9 +631,9 @@ class MetadataFile(DataFile):
elif "styles" not in set_data: elif "styles" not in set_data:
raise Failed("Set Data must have the styles attribute") raise Failed("Set Data must have the styles attribute")
styles = util.parse("Set Data", "styles", set_data["styles"], datatype="dictlist") 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") 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])}") raise Failed(f"Set Data styles default style not found. Options: {', '.join([s for s in styles])}")
use_key = None use_key = None
if f"use_{set_key}" in methods: if f"use_{set_key}" in methods:

Loading…
Cancel
Save