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 <github@franzbonenkamp.de>
This commit is contained in:
Go Ray
2025-12-30 22:31:14 +01:00
committed by GitHub
co-authored by Mario
parent 10f545b509
commit 619e959a8e
+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 = ""