Skip to content

Commit

Permalink
Fix missing layer in connector check
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjell Morgenstern committed Jun 20, 2024
1 parent ad7c6d8 commit 6c49c48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/checks/fzp_checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def check(self):
continue

connector_svg_id = p.attrib.get("svgId")
layer = p.attrib.get("layer")
if not connector_svg_id:
print(f"Connector {connector_id} does not reference an element in layer {layer}.")
errors += 1
Expand All @@ -121,7 +122,7 @@ def check(self):
svg_path = FZPUtils.get_svg_path_from_view(self.fzp_doc, self.fzp_path, view.tag, layer)
if not svg_path:
continue # Skip template SVGs
if not self.is_connector_visible(svg_path, connector_svg_id) and not is_hybrid:
if not self.is_connector_visible(svg_path, connector_svg_id): # we already checked that it is not hybrid
print(f"Invisible connector '{connector_svg_id}' in layer '{layer}' of file '{self.fzp_path}'")
errors += 1
return errors
Expand Down

0 comments on commit 6c49c48

Please sign in to comment.