mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-23 23:38:21 +00:00
Return default symbol if user asked for a non existing symbol
This commit is contained in:
parent
928d9f13f4
commit
66a237628a
@ -75,8 +75,11 @@ 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:
|
||||
return self._symbol_size_cache[symbol_id]
|
||||
|
Loading…
Reference in New Issue
Block a user