diff --git a/spoilers.py b/spoilers.py index 32f11b9b..784b44a2 100644 --- a/spoilers.py +++ b/spoilers.py @@ -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: