Fix import from Heroic if no Epic games
This commit is contained in:
@@ -112,6 +112,7 @@ def heroic_parser(parent_widget, action):
|
|||||||
open_file.close()
|
open_file.close()
|
||||||
library = json.loads(data)
|
library = json.loads(data)
|
||||||
|
|
||||||
|
try:
|
||||||
for game in library["library"]:
|
for game in library["library"]:
|
||||||
if not game["is_installed"]:
|
if not game["is_installed"]:
|
||||||
continue
|
continue
|
||||||
@@ -150,6 +151,8 @@ def heroic_parser(parent_widget, action):
|
|||||||
save_cover(values, parent_widget, image_path)
|
save_cover(values, parent_widget, image_path)
|
||||||
|
|
||||||
heroic_games[values["game_id"]] = values
|
heroic_games[values["game_id"]] = values
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
# Import GOG games
|
# Import GOG games
|
||||||
if not schema.get_boolean("heroic-import-gog"):
|
if not schema.get_boolean("heroic-import-gog"):
|
||||||
|
|||||||
Reference in New Issue
Block a user