Skip to content

Commit f32e694

Browse files
committed
Fixes #7739: Fix exception when tracing cable across circuit with no far end termination
1 parent e5900a3 commit f32e694

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

docs/release-notes/version-3.0.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212

1313
### Bug Fixes
1414

15-
* [#7729](https://github.com/netbox-community/netbox/issues/7229) - Fix permissions evaluation when displaying VLAN group VLANs table
15+
* [#7729](https://github.com/netbox-community/netbox/issues/7729) - Fix permissions evaluation when displaying VLAN group VLANs table
16+
* [#7739](https://github.com/netbox-community/netbox/issues/7739) - Fix exception when tracing cable across circuit with no far end termination
1617
* [#7813](https://github.com/netbox-community/netbox/issues/7813) - Fix handling of errors during export template rendering
1718

1819
---

netbox/dcim/svg.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -442,15 +442,16 @@ def render(self):
442442
parent_objects.append(parent_object)
443443

444444
# Near end termination
445-
termination = self._draw_box(
446-
width=self.width * .8,
447-
color=self._get_color(near_end),
448-
url=near_end.get_absolute_url(),
449-
labels=self._get_labels(near_end),
450-
y_indent=PADDING,
451-
radius=5
452-
)
453-
terminations.append(termination)
445+
if near_end is not None:
446+
termination = self._draw_box(
447+
width=self.width * .8,
448+
color=self._get_color(near_end),
449+
url=near_end.get_absolute_url(),
450+
labels=self._get_labels(near_end),
451+
y_indent=PADDING,
452+
radius=5
453+
)
454+
terminations.append(termination)
454455

455456
# Connector (either a Cable or attachment to a ProviderNetwork)
456457
if connector is not None:

0 commit comments

Comments
 (0)