소스 검색

Fix SVG rendering with unspecified width

jeremystretch 4 년 전
부모
커밋
443172197b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      netbox/dcim/api/views.py

+ 1 - 1
netbox/dcim/api/views.py

@@ -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('/'),