mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fix crash when getting font
This commit is contained in:
1 file changed
+1
-1
@@ -326,7 +326,7 @@ def _convert_1_3_later(topo, topo_path):
|
||||
|
||||
# Notes
|
||||
for note in topo.get("notes", []):
|
||||
font_info = note["font"].get("TypeWriter,10,-1,5,75,0,0,0,0,0").split(",")
|
||||
font_info = note.get("font", "TypeWriter,10,-1,5,75,0,0,0,0,0").split(",")
|
||||
|
||||
if font_info[4] == "75":
|
||||
weight = "bold"
|
||||
|
||||
Reference in new issue
Block a user