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):
bottles_location = bottles_dir / "bottles"
grid_path = (
bottles_location
/ game["bottle"]["path"]
/ "grids"
/ game["thumbnail"].split(":")[1]
)
if game["thumbnail"]:
grid_path = (
bottles_location
/ game["bottle"]["path"]
/ "grids"
/ game["thumbnail"].split(":")[1]
)
importer.save_game(
values,