1
0
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:
jeremystretch
2021-07-16 17:09:52 -04:00
parent 05d16b0682
commit 443172197b

View File

@@ -54,7 +54,7 @@ class PathEndpointMixin(object):
# Render SVG
try:
width = min(int(request.GET.get('width')), 1600)
except ValueError:
except (ValueError, TypeError):
width = None
drawing = obj.get_trace_svg(
base_url=request.build_absolute_uri('/'),