error handling
This commit is contained in:
parent
56e1746f54
commit
0c4e33fd0c
@ -241,8 +241,8 @@ function buildSupplementalIndexes()
|
|||||||
writeToNestedTable(customInvestigatorData, "InvestigatorSubdata", cardId, "cards", cardId)
|
writeToNestedTable(customInvestigatorData, "InvestigatorSubdata", cardId, "cards", cardId)
|
||||||
|
|
||||||
-- read the signatures
|
-- read the signatures
|
||||||
if card.metadata.signatures then
|
if card.metadata.signatures and type(card.metadata.signatures) == "table" then
|
||||||
for sigId, sigCount in pairs(card.metadata.signatures[1]) do
|
for sigId, sigCount in pairs(card.metadata.signatures[1] or {}) do
|
||||||
customSignatureDict[sigId] = true
|
customSignatureDict[sigId] = true
|
||||||
for i = 1, sigCount do
|
for i = 1, sigCount do
|
||||||
writeToNestedTable(customInvestigatorData, "InvestigatorSubdata", cardId, "signatures", sigId)
|
writeToNestedTable(customInvestigatorData, "InvestigatorSubdata", cardId, "signatures", sigId)
|
||||||
|
Loading…
Reference in New Issue
Block a user