mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
1 file changed
+5
-1
@@ -92,7 +92,11 @@ class Drawing:
|
||||
self._svg = value
|
||||
return
|
||||
|
||||
root = ET.fromstring(value)
|
||||
try:
|
||||
root = ET.fromstring(value)
|
||||
except ET.ParseError as e:
|
||||
log.error("Can't parse SVG: {}".format(e))
|
||||
return
|
||||
# SVG is the default namespace no need to prefix it
|
||||
ET.register_namespace('xmlns', "http://www.w3.org/2000/svg")
|
||||
ET.register_namespace('xmlns:xlink', "http://www.w3.org/1999/xlink")
|
||||
|
||||
Reference in new issue
Block a user