Skip cards absolutely not supported by Wagic when exporting
This commit is contained in:
parent
183b1c166c
commit
c450316f10
1 changed files with 3 additions and 0 deletions
3
mtg.py
3
mtg.py
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue