mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fix SVG rendering with unspecified width
This commit is contained in:
@@ -54,7 +54,7 @@ class PathEndpointMixin(object):
|
|||||||
# Render SVG
|
# Render SVG
|
||||||
try:
|
try:
|
||||||
width = min(int(request.GET.get('width')), 1600)
|
width = min(int(request.GET.get('width')), 1600)
|
||||||
except ValueError:
|
except (ValueError, TypeError):
|
||||||
width = None
|
width = None
|
||||||
drawing = obj.get_trace_svg(
|
drawing = obj.get_trace_svg(
|
||||||
base_url=request.build_absolute_uri('/'),
|
base_url=request.build_absolute_uri('/'),
|
||||||
|
Reference in New Issue
Block a user