shows which attribute has naming problem

added few lines to show which attribute has naming problem, along with the github link to the readme file showing how to fix it
pull/110/head
Abrar Faiaz Adnan 2022-05-24 22:48:38 +06:00
rodzic bc732bede6
commit 33cacab994
1 zmienionych plików z 12 dodań i 2 usunięć

Wyświetl plik

@ -101,8 +101,18 @@ def get_hierarchy():
name = getName(i)
orderRarity = getOrder_rarity(i)
number = orderRarity[0]
rarity = orderRarity[1]
try:
number = orderRarity[0]
except:
print("Naming problem with the attribute variant " + i)
print("Please check the naming convention of the attribute variants from https://github.com/torrinworx/Blend_My_NFTs#blender-file-organization-and-structure")
try:
rarity = orderRarity[1]
except:
print("Naming problem with the attribute variant " + i )
print("Please check the naming convention of the attribute variants from https://github.com/torrinworx/Blend_My_NFTs#blender-file-organization-and-structure")
eachObject = {"name": name, "number": number, "rarity": rarity}
allAttDataList[i] = eachObject