Fix bottles import if no thumbnail - fixes #113
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user