Skip to content

Commit

Permalink
Merge pull request #148 from xyz2tex/145-cant-find-attribute-switchis…
Browse files Browse the repository at this point in the history
…_visible

Fix: try except for Attribute Error with is_visible
  • Loading branch information
ldevillez authored Oct 5, 2023
2 parents 38e286e + 54358c0 commit da7a104
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions svg2tikz/tikz_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand Down

0 comments on commit da7a104

Please sign in to comment.