Skip cards absolutely not supported by Wagic when exporting

This commit is contained in:
Correl Roush 2010-07-08 22:47:56 -04:00
parent 183b1c166c
commit c450316f10

3
mtg.py
View file

@ -305,6 +305,9 @@ class Deck(CardList):
]
for card, count in cards.iteritems():
sets = card.sets
if not sets:
print 'Card not supported:', card
continue
line = '{0} ({1}) *{2}\n'.format(card.name, card.sets[-1], count)
lines.append(line)
with open(filename, 'w') as f: