From a1a677fcd33383cb9cd96c21d8d30a92b4a2e072 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 23 Jan 2017 10:17:52 +0100 Subject: [PATCH] Fix an error when converting some topologies from 1.3 Fix #871 --- gns3server/controller/topology.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/controller/topology.py b/gns3server/controller/topology.py index 6d03ef48..7456a1bc 100644 --- a/gns3server/controller/topology.py +++ b/gns3server/controller/topology.py @@ -408,7 +408,7 @@ def _convert_1_3_later(topo, topo_path): svg = '{text}'.format( height=int(font_info[1]) * 2, width=int(font_info[1]) * len(note["text"]), - fill="#" + note["color"][-6:], + fill="#" + note.get("color", "#00000000")[-6:], opacity=round(1.0 / 255 * int(note.get("color", "#ffffffff")[:3][-2:], base=16), 2), # Extract the alpha channel from the hexa version family=font_info[0], size=int(font_info[1]),