diff --git a/mtg.py b/mtg.py index 952d61c..65109c9 100644 --- a/mtg.py +++ b/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: