1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-18 22:38:07 +00:00

Fix a crash when default font is missing

Fix #750
This commit is contained in:
Julien Duponchelle 2016-10-31 11:37:39 +01:00
parent 9bceaa89b7
commit 94ebd732a8
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -326,7 +326,7 @@ def _convert_1_3_later(topo, topo_path):
# Notes # Notes
for note in topo.get("notes", []): for note in topo.get("notes", []):
font_info = note["font"].split(",") font_info = note["font"].get("TypeWriter,10,-1,5,75,0,0,0,0,0").split(",")
if font_info[4] == "75": if font_info[4] == "75":
weight = "bold" weight = "bold"