mirror of
https://github.com/GNS3/gns3-server
synced 2025-03-08 04:36:15 +00:00
parent
4a5066c2a5
commit
53e6ee1b3a
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user