Fixes #683: Fix crash when rendering WirelessLink without label (#690)

* Fix crash when rendering WirelessLink without label

* removes the unnecessary str()

* Update views.py

---------

Co-authored-by: Mario <[email protected]>
This commit is contained in:
Go RayandMario authored and GitHub committed 2025-12-30 22:31:14 +01:00
1 parent 10f545b509
commit 619e959a8e
1 file changed
+1 -1
+1 -1
View File
@@ -322,7 +322,7 @@ def create_edge(
edge["color"] = '#f1c232'
edge["href"] = interface.get_absolute_url() + "trace"
if cable is not None and cable.label:
if cable is not None and hasattr(cable, "label") and cable.label:
cable_label = "<br>Label: " + cable.label
else:
cable_label = ""