From 67be4259ff1ad4a38673c451ddd49cdf4e2718d0 Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 15 Nov 2023 11:57:14 +1000 Subject: [PATCH] Fix tests --- gns3server/controller/symbols.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/controller/symbols.py b/gns3server/controller/symbols.py index d5fc2ae3..69ec399c 100644 --- a/gns3server/controller/symbols.py +++ b/gns3server/controller/symbols.py @@ -154,8 +154,8 @@ class Symbols: # 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 + if symbol and symbol in self._symbols_path: + return self._symbols_path[symbol] return self._symbols_path[":/symbols/classic/computer.svg"] def get_size(self, symbol_id):