Fixed error when no temporary album art present

This commit is contained in:
Erica
2021-11-21 01:46:40 +00:00
parent 51995f6aae
commit d43dc3f3dc

View File

@ -366,13 +366,11 @@ class Player:
return 1/(x+1)**2
# Init thief
color_thief = ColorThief(self.album_art_loc)
# Get palette
# Init thief and get palette
try:
color_thief = ColorThief(self.album_art_loc)
palette = color_thief.get_palette(color_count=COLOR_COUNT, quality=100)
except OSError:
except (OSError, FileNotFoundError):
self.color_update_needed = True
return