From 103be13ba4c143fd50cb3368a4da7336e851dfce Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 27 Jul 2017 11:39:25 +0200 Subject: [PATCH] Fix an error when a symbol is not available on filesystem Fix #1102 --- gns3server/controller/node.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gns3server/controller/node.py b/gns3server/controller/node.py index 51242af8..b7050045 100644 --- a/gns3server/controller/node.py +++ b/gns3server/controller/node.py @@ -236,8 +236,11 @@ class Node: val = ":/symbols/computer.svg" # No abs path, fix them (bug of 1.X) - if not val.startswith(":") and os.path.abspath(val): - val = os.path.basename(val) + try: + if not val.startswith(":") and os.path.abspath(val): + val = os.path.basename(val) + except OSError: + pass self._symbol = val try: