From c450316f102ea9c64db3d4cb10d569ff944d0f25 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Thu, 8 Jul 2010 22:47:56 -0400 Subject: [PATCH] Skip cards absolutely not supported by Wagic when exporting --- mtg.py | 3 +++ 1 file changed, 3 insertions(+) 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: