mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Catch None TypeError when comparing metadata
This commit is contained in:
@@ -23,7 +23,7 @@ def compare(file, metadata):
|
||||
audiofile = MP4('Music/' + file)
|
||||
# fetch track title metadata
|
||||
already_tagged = audiofile[tags['title']] == metadata['name']
|
||||
except KeyError:
|
||||
except (KeyError, TypeError):
|
||||
pass
|
||||
return already_tagged
|
||||
|
||||
|
||||
Reference in New Issue
Block a user