summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2020-02-18 17:11:50 +0100
committeremkael <emkael@tlen.pl>2020-02-18 17:14:06 +0100
commit07793e95ec7d3a218777ad5a36fa56e4d4f186b6 (patch)
tree6b7fbfbb813635991b08ba508cc884f3039ea12c
parent4ca15ee0719bddd9311ca5941fe20375ae29d888 (diff)
Raising error on sketchy LIN files
-rw-r--r--dealconvert/formats/lin.py2
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]