summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dealconvert/formats/dlm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dealconvert/formats/dlm.py b/dealconvert/formats/dlm.py
index 4fbd371..5dc385d 100644
--- a/dealconvert/formats/dlm.py
+++ b/dealconvert/formats/dlm.py
@@ -96,7 +96,7 @@ class DLMFormat(DealFormat):
for card in cards:
try:
values[suit*13+self.cards.index(card)] = i
- except IndexError:
+ except ValueError:
print 'ERROR: invalid card: %s' % (card)
line = 'Board %02d=' % (board)
checksum = board