Skip to content

Commit

Permalink
Avoid Graphviz error when hiding all pins (#375)
Browse files Browse the repository at this point in the history
Fixes #257
  • Loading branch information
kvid authored and formatc1702 committed Jun 14, 2024
1 parent 2d38267 commit 2f4fe11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wireviz/Harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ def create_graph(self) -> Graph:

pinhtml.append(" </table>")

if len(pinhtml) == 2: # Table start and end with no rows between?
pinhtml = ["<!-- all pins hidden -->"] # Avoid Graphviz error

html = [
row.replace("<!-- connector table -->", "\n".join(pinhtml))
for row in html
Expand Down

0 comments on commit 2f4fe11

Please sign in to comment.