try: fix modified tracks keyerror

This commit is contained in:
cwilvx
2025-05-13 15:13:41 +03:00
parent c14ec4ba4b
commit 4a741d9ffc
+2 -2
View File
@@ -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,
}
)