From 08ef3e847a826303506407616b189e892d247b60 Mon Sep 17 00:00:00 2001 From: Diego Capusotto Date: Sat, 18 Dec 2021 12:09:51 -0300 Subject: [PATCH] v6 loader: catch case were the file is just a word --- kibot/kicad/v6_sch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibot/kicad/v6_sch.py b/kibot/kicad/v6_sch.py index 2eb5083e..9a354991 100644 --- a/kibot/kicad/v6_sch.py +++ b/kibot/kicad/v6_sch.py @@ -1049,7 +1049,7 @@ class SchematicV6(Schematic): error = str(e) if error: raise SchError(error) - if sch[0].value() != 'kicad_sch': + if not isinstance(sch, list) or sch[0].value() != 'kicad_sch': raise SchError('No kicad_sch signature') for e in sch[1:]: e_type = _check_is_symbol_list(e)