From bb4870e99d977d9c576ba1f3300f1b7c089128dc Mon Sep 17 00:00:00 2001 From: GeoffreyCoulaud Date: Thu, 20 Jul 2023 11:33:55 +0200 Subject: [PATCH] Add debug message to local cover manager --- src/store/managers/local_cover_manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/store/managers/local_cover_manager.py b/src/store/managers/local_cover_manager.py index b95c22b..0b95f30 100644 --- a/src/store/managers/local_cover_manager.py +++ b/src/store/managers/local_cover_manager.py @@ -18,6 +18,8 @@ # # SPDX-License-Identifier: GPL-3.0-or-later +import logging + from gi.repository import GdkPixbuf from src import shared @@ -35,6 +37,7 @@ class LocalCoverManager(Manager): def manager_logic(self, game: Game, additional_data: dict) -> None: if image_path := additional_data.get("local_image_path"): if not image_path.is_file(): + logging.error("Local image path is not a file: %s", image_path) return save_cover(game.game_id, resize_cover(image_path)) elif icon_path := additional_data.get("local_icon_path"):