mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-11 16:41:04 +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
|
||||
except KeyError:
|
||||
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):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user