mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 23:43:48 +02:00
parent
ac05db5d1b
commit
8d22f2930e
@ -99,8 +99,8 @@ def get_size(data, default_width=0, default_height=0):
|
|||||||
root = tree.getroot()
|
root = tree.getroot()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
width = _svg_convert_size(root.attrib.get("width", 0))
|
width = _svg_convert_size(root.attrib.get("width", "0"))
|
||||||
height = _svg_convert_size(root.attrib.get("height", 0))
|
height = _svg_convert_size(root.attrib.get("height", "0"))
|
||||||
except IndexError:
|
except IndexError:
|
||||||
raise ValueError("Invalid SVG file")
|
raise ValueError("Invalid SVG file")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user