[videogames] Fix index error with IGDB lookups

This commit is contained in:
2024-03-18 14:26:09 -04:00
parent 49dd148f9f
commit 302ddf6650

View File

@ -52,7 +52,7 @@ def lookup_game_id_from_gdb(name: str) -> str:
logger.warn(f"Search of game on IGDB failed for name {name}")
return ""
return results[0]["game"]
return results[0].get("game", "")
def lookup_game_from_igdb(name_or_igdb_id: str) -> Dict: