diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2022-11-10 14:03:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-10 14:03:32 +0100 |
| commit | 7445b91851f6bd4abc255490f917f6c578bbf0f1 (patch) | |
| tree | 953e60cf81f23069386c4d89376736e0fccae59f /lib/lettering | |
| parent | ea13c429973e50ef55ee4bf4403a0618cb9b26d8 (diff) | |
lettering: ignore invalid glyph layers (#1892)
Diffstat (limited to 'lib/lettering')
| -rw-r--r-- | lib/lettering/font_variant.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/lettering/font_variant.py b/lib/lettering/font_variant.py index a7f353fe..ecdba137 100644 --- a/lib/lettering/font_variant.py +++ b/lib/lettering/font_variant.py @@ -69,7 +69,10 @@ class FontVariant(object): self._clean_group(layer) layer.attrib[INKSCAPE_LABEL] = layer.attrib[INKSCAPE_LABEL].replace("GlyphLayer-", "", 1) glyph_name = layer.attrib[INKSCAPE_LABEL] - self.glyphs[glyph_name] = Glyph(layer) + try: + self.glyphs[glyph_name] = Glyph(layer) + except AttributeError: + pass def _clean_group(self, group): # We'll repurpose the layer as a container group labelled with the |
