Remove try catch block

Or what was left of it
This commit is contained in:
Salt 2020-03-04 03:50:53 -06:00
parent 64af929cf1
commit eac3503e90

View File

@ -44,12 +44,11 @@ class Library:
def validate(self):
self.load()
try:
for album, albumcontent in self.albums.items():
for song, songcontent in albumcontent.items():
for field in ['track', 'artist', 'source']:
if field not in songcontent:
raise Exception('Song is missing required field', song, field)
for album, albumcontent in self.albums.items():
for song, songcontent in albumcontent.items():
for field in ['track', 'artist', 'source']:
if field not in songcontent:
raise Exception('Song is missing required field', song, field)
# Download library
def download(self, targetalbum=None):