Fix errors with caching when cache is deleted (#101)

This commit is contained in:
DecDuck
2025-08-04 15:02:32 +10:00
committed by GitHub
parent 776dc8fe7a
commit 339d707092

View File

@ -116,7 +116,16 @@ pub fn fetch_library_logic(
}
// We should always have a cache of the object
// Pass db_handle because otherwise we get a gridlock
let game = get_cached_object_db::<Game>(&meta.id.clone(), &db_handle)?;
let game = match get_cached_object_db::<Game>(&meta.id.clone(), &db_handle) {
Ok(game) => game,
Err(err) => {
warn!(
"{} is installed, but encountered error fetching its error: {}.",
meta.id, err
);
continue;
}
};
games.push(game);
}