Fix crash when getting font

This commit is contained in:
Julien Duponchelle 2016-11-01 18:18:51 +01:00
parent 94ebd732a8
commit ae76a4f778
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
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"