mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Upgrade to aiohttp v3.9.0rc0
This commit is contained in:
1 parent
261dd1d6d5
commit
4e9bc190a4
2 files changed
+5
-2
No files matched your search
@@ -72,7 +72,7 @@ class Symbols:
|
||||
return None
|
||||
symbol_path = theme.get(symbol)
|
||||
if symbol_path not in self._symbols_path:
|
||||
log.warning(f"Default symbol {symbol} was not found")
|
||||
log.debug(f"Default symbol {symbol} was not found")
|
||||
return None
|
||||
return symbol_path
|
||||
|
||||
@@ -153,6 +153,9 @@ class Symbols:
|
||||
else:
|
||||
# return the default computer symbol
|
||||
log.warning(f"Could not retrieve symbol '{symbol_id}', returning default symbol...")
|
||||
symbol = self.get_default_symbol("computer", self._current_theme)
|
||||
if symbol:
|
||||
return symbol
|
||||
return self._symbols_path[":/symbols/classic/computer.svg"]
|
||||
|
||||
def get_size(self, symbol_id):
|
||||
|
||||
Reference in new issue
Block a user