Fix bottles import if no thumbnail - fixes #113

This commit is contained in:
kramo
2023-06-19 19:52:51 +02:00
parent 893b290a1e
commit ea0ecf4fb4

View File

@@ -94,12 +94,13 @@ def bottles_importer():
except (FileNotFoundError, KeyError): except (FileNotFoundError, KeyError):
bottles_location = bottles_dir / "bottles" bottles_location = bottles_dir / "bottles"
grid_path = ( if game["thumbnail"]:
bottles_location grid_path = (
/ game["bottle"]["path"] bottles_location
/ "grids" / game["bottle"]["path"]
/ game["thumbnail"].split(":")[1] / "grids"
) / game["thumbnail"].split(":")[1]
)
importer.save_game( importer.save_game(
values, values,