diff --git a/src/importers/bottles_importer.py b/src/importers/bottles_importer.py index a8e9699..6c32910 100644 --- a/src/importers/bottles_importer.py +++ b/src/importers/bottles_importer.py @@ -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,