summaryrefslogtreecommitdiff
path: root/dealconvert/formats
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-05-23 00:52:49 +0200
committeremkael <emkael@tlen.pl>2019-05-23 00:52:49 +0200
commitd661ad40b01fb219e391fce2935d1e55a4a5b3c9 (patch)
tree123fc9070bc804c00827badc7e86277fba9ba75c /dealconvert/formats
parent2df6c48942bee2c6eae371a744a3c367e4cf8d68 (diff)
Proper error handling in DLM format
Diffstat (limited to 'dealconvert/formats')
-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