From 4a741d9ffceb62c63b8112e1f199d24c43b3668c Mon Sep 17 00:00:00 2001 From: cwilvx Date: Tue, 13 May 2025 15:13:41 +0300 Subject: [PATCH] try: fix modified tracks keyerror --- app/lib/tagger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/tagger.py b/app/lib/tagger.py index a3e8e9d0..abe6a068 100644 --- a/app/lib/tagger.py +++ b/app/lib/tagger.py @@ -69,7 +69,7 @@ class IndexTracks: extract_thumb( track["filepath"], track["albumhash"] + ".webp", overwrite=True ) - except (FileNotFoundError, KeyError): + except FileNotFoundError: continue @staticmethod @@ -100,7 +100,7 @@ class IndexTracks: modified_tracks.append( { "filepath": track.filepath, - "trackhash": track.trackhash, + "albumhash": track.albumhash, } )