fix[closes #4538]: crash adding a program to the library when the thumbnail cannot be fetched

This commit is contained in:
mirkobrombin
2026-07-12 18:21:15 +02:00
parent d42b89e5d0
commit ace4da72dd
+6 -1
View File
@@ -73,7 +73,12 @@ class LibraryManager:
logging.info(f"Adding new entry to library: {_uuid}")
if not data.get("thumbnail"):
data["thumbnail"] = SteamGridDBManager.get_game_grid(data["name"], config)
try:
data["thumbnail"] = SteamGridDBManager.get_game_grid(
data["name"], config
)
except Exception as e:
logging.warning(f"Could not fetch thumbnail: {e}")
self.__library[_uuid] = data
self.save_library()