From 54358c020829d87d9e98e2021f5bd697c1473c6e Mon Sep 17 00:00:00 2001 From: ldevillez Date: Thu, 5 Oct 2023 10:01:31 +0200 Subject: [PATCH] Fix: try except for Attribute Error with is_visible --- svg2tikz/tikz_export.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/svg2tikz/tikz_export.py b/svg2tikz/tikz_export.py index 97463d2..d98fd27 100644 --- a/svg2tikz/tikz_export.py +++ b/svg2tikz/tikz_export.py @@ -1191,8 +1191,11 @@ def _output_group(self, group): if node.TAG == "g": string += self._handle_group(node) continue - - goptions = self.style_to_tz(node) + self.trans_to_tz(node) + try: + goptions = self.style_to_tz(node) + self.trans_to_tz(node) + except AttributeError as msg: + attr = msg.args[0].split("attribute")[1].split(".")[0] + logging.warning("%s attribute cannot be represented", attr) cmd = []