Skip to content

Commit 8137338

Browse files
MontspyNomad
authored andcommitted
add[python]: add support for generating metadata with layer rarity
1 parent d942c7f commit 8137338

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def main():
166166

167167
# Get trait properties only (remove ID, CID, etc...)
168168
layer_names = [l["layer_name"] for l in traits.image_layers]
169-
properties = {name: image[name] for name in layer_names}
169+
properties = {name: image[name] for name in layer_names if name in image}
170170

171171
# Create all new info
172172
token = {

0 commit comments

Comments
 (0)