Error for manaCost == ""

This commit is contained in:
dev-id
2017-09-11 12:22:10 -05:00
parent 2f5ccb4887
commit 7243182be3

View File

@@ -190,7 +190,7 @@ def error_check(mtgjson, card_corrections={}):
{"name": card['name'], "key": "subtypes", "value": ""})
if '-' in card['type']:
card['type'] = card['type'].replace('-',u'—')
if 'manaCost' in card:
if 'manaCost' in card and card['manaCost'] != "":
workingCMC = 0
stripCost = card['manaCost'].replace('{', '').replace('}', '')
for manaSymbol in stripCost: