Skip to content

Commit f6e3d7c

Browse files
committed
FIX(plot): failing if steps not a list/ is none...
backported from #29
1 parent 3a87959 commit f6e3d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphkit/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_node_name(a):
3333
kw = {}
3434
if isinstance(nx_node, str):
3535
# Only DeleteInstructions data in steps.
36-
if nx_node in steps:
36+
if steps and nx_node in steps:
3737
kw = {"color": "red", "penwidth": 2}
3838

3939
# SHAPE change if in inputs/outputs.

0 commit comments

Comments
 (0)