diff options
Diffstat (limited to 'lib/extensions')
| -rw-r--r-- | lib/extensions/print_pdf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extensions/print_pdf.py b/lib/extensions/print_pdf.py index 387e246b..8af07cf7 100644 --- a/lib/extensions/print_pdf.py +++ b/lib/extensions/print_pdf.py @@ -194,7 +194,7 @@ class Print(InkstitchExtension): def strip_namespaces(self, svg): # namespace prefixes seem to trip up HTML, so get rid of them for element in svg.iter(): - if element.tag[0] == '{': + if type(element.tag) == str and element.tag[0] == '{': element.tag = element.tag[element.tag.index('}', 1) + 1:] def render_svgs(self, stitch_plan, realistic=False): |
