mirror of
https://github.com/bottlesdevs/Bottles.git
synced 2026-10-17 06:00:59 +08:00
fix[closes #4538]: crash adding a program to the library when the thumbnail cannot be fetched
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user