1
0
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:
Julien Duponchelle 2016-11-16 13:17:58 +01:00
parent 928d9f13f4
commit 66a237628a
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -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]