mirror of
https://github.com/GNS3/gns3-server
synced 2025-05-08 01:59:06 +00:00
Return default symbol if user asked for a non existing symbol
This commit is contained in:
parent
928d9f13f4
commit
66a237628a
@ -75,7 +75,10 @@ class Symbols:
|
|||||||
# Symbol not found refresh cache
|
# Symbol not found refresh cache
|
||||||
except KeyError:
|
except KeyError:
|
||||||
self.list()
|
self.list()
|
||||||
return self._symbols_path[symbol_id]
|
try:
|
||||||
|
return self._symbols_path[symbol_id]
|
||||||
|
except KeyError:
|
||||||
|
return self._symbols_path[":/symbols/computer.svg"]
|
||||||
|
|
||||||
def get_size(self, symbol_id):
|
def get_size(self, symbol_id):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user