From 5e55f661f8ac8c6487788d5e075f8955da1e60a7 Mon Sep 17 00:00:00 2001 From: SET Date: Fri, 14 Aug 2020 15:57:08 -0300 Subject: [PATCH] Fixed calls to SchLibError with extra args --- kiplot/kicad/v5_sch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiplot/kicad/v5_sch.py b/kiplot/kicad/v5_sch.py index 4618af05..4731b3f0 100644 --- a/kiplot/kicad/v5_sch.py +++ b/kiplot/kicad/v5_sch.py @@ -97,7 +97,7 @@ class LibComponentField(object): def parse(line, lib_name): m = LibComponentField.field_re.match(line) if not m: - raise SchLibError('Malformed component field', line, _sch_line_number, lib_name) + raise SchLibError('Malformed component field', line) field = LibComponentField() gs = m.groups() field.number = int(gs[0]) @@ -115,7 +115,7 @@ class LibComponentField(object): field.name = gs[9][1:-1] else: if field.number > 4: - raise SchLibError('Missing component field name', line, _sch_line_number, lib_name) + raise SchLibError('Missing component field name', line) field.name = ['Reference', 'Value', 'Footprint', 'Datasheet'][field.number] return field