From 16956d214b96f45dde7a8337a27acbce3a4bbdf2 Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Sun, 16 Apr 2023 13:07:50 +0200 Subject: [PATCH] Fix animated cover import bug --- src/utils/save_cover.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/save_cover.py b/src/utils/save_cover.py index 88bb650..6ee41d9 100644 --- a/src/utils/save_cover.py +++ b/src/utils/save_cover.py @@ -57,7 +57,8 @@ def save_cover( if animation_path: copyfile(animation_path, win.covers_dir / f"{game_id}.gif") - win.game_covers[game_id].new_pixbuf(animation_path) + if game_id in win.game_covers: + win.game_covers[game_id].new_pixbuf(animation_path) return if not pixbuf: