From 07793e95ec7d3a218777ad5a36fa56e4d4f186b6 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 18 Feb 2020 17:11:50 +0100 Subject: Raising error on sketchy LIN files --- dealconvert/formats/lin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dealconvert/formats/lin.py') 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] -- cgit v1.2.3