diff options
author | emkael <emkael@tlen.pl> | 2020-02-18 17:11:50 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2020-02-18 17:14:06 +0100 |
commit | 07793e95ec7d3a218777ad5a36fa56e4d4f186b6 (patch) | |
tree | 6b7fbfbb813635991b08ba508cc884f3039ea12c /dealconvert/formats/lin.py | |
parent | 4ca15ee0719bddd9311ca5941fe20375ae29d888 (diff) |
Raising error on sketchy LIN files
Diffstat (limited to 'dealconvert/formats/lin.py')
-rw-r--r-- | dealconvert/formats/lin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dealconvert/formats/lin.py b/dealconvert/formats/lin.py index 0c740c1..c2f3a0e 100644 --- a/dealconvert/formats/lin.py +++ b/dealconvert/formats/lin.py @@ -45,7 +45,7 @@ class LINFormat(DealFormat): if layout: if deal_number in deals: if deals[deal_number] != layout: - print 'error, duplicate board number with differing layout' + raise RuntimeError('multiple boards #%d with different layouts' % (deal_number)) deals[deal_number] = layout else: print 'layout not parsed: ' + fields['md'][0] |