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):
|
def validate(self):
|
||||||
self.load()
|
self.load()
|
||||||
try:
|
for album, albumcontent in self.albums.items():
|
||||||
for album, albumcontent in self.albums.items():
|
for song, songcontent in albumcontent.items():
|
||||||
for song, songcontent in albumcontent.items():
|
for field in ['track', 'artist', 'source']:
|
||||||
for field in ['track', 'artist', 'source']:
|
if field not in songcontent:
|
||||||
if field not in songcontent:
|
raise Exception('Song is missing required field', song, field)
|
||||||
raise Exception('Song is missing required field', song, field)
|
|
||||||
|
|
||||||
# Download library
|
# Download library
|
||||||
def download(self, targetalbum=None):
|
def download(self, targetalbum=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user