Merge pull request #154 from dev-id/error-for-manaCost

Error for manaCost == ""
This commit is contained in:
Dave 2017-09-15 12:42:59 -05:00 committed by GitHub
commit d90d05b942

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: