mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 15:33:49 +02:00
Fix crash when getting font
This commit is contained in:
parent
94ebd732a8
commit
ae76a4f778
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user