Remove try catch block
Or what was left of it
This commit is contained in:
parent
64af929cf1
commit
eac3503e90
11
badwitch.py
11
badwitch.py
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user