Skip to content

Commit 0474682

Browse files
committed
FIX(plot): err-msg was failing on ops without fn
1 parent f7f668e commit 0474682

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

graphtik/plot.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,7 @@ def get_node_name(a):
234234
try:
235235
kw["URL"] = f"file://{inspect.getfile(nx_node.fn)}"
236236
except Exception as ex:
237-
log.debug(
238-
"Ignoring error while inspecting file of %s: %s", nx_node.fn, ex
239-
)
237+
log.debug("Ignoring error while inspecting file of %s: %s", nx_node, ex)
240238
node = pydot.Node(
241239
name=quote_dot_kws(nx_node.name),
242240
shape=shape,

0 commit comments

Comments
 (0)