fix case of not having mb info

This commit is contained in:
Thomas Vander Stichele
2010-04-13 22:24:17 +00:00
parent 3c8a89a2ba
commit 866a0a27d9

View File

@@ -111,12 +111,12 @@ class Retag(logcommand.LogCommand):
cueImage.setup(runner)
mbdiscid = cueImage.table.getMusicBrainzDiscId()
if not mbdiscid:
prog.metadata = prog.getMusicBrainz(cueImage.table, mbdiscid)
if not prog.metadata:
print 'Not in MusicBrainz database, skipping'
continue
prog.metadata = prog.getMusicBrainz(cueImage.table, mbdiscid)
# FIXME: this feels like we're poking at internals.
prog.cuePath = arg
prog.result = result.RipResult()