* morituri/common/program.py:

Don't fail if there is no metadata.
This commit is contained in:
Thomas Vander Stichele
2011-08-14 14:48:02 +00:00
parent e60b6d8441
commit 7cff47a8d4
2 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2011-08-14 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/program.py:
Don't fail if there is no metadata.
2011-08-14 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/program.py:

View File

@@ -355,6 +355,8 @@ class Program(log.Loggable):
ret = None
metadatas = None
e = None
for _ in range(0, 4):
try:
metadatas = musicbrainz(mbdiscid)
@@ -364,7 +366,8 @@ class Program(log.Loggable):
continue
if not metadatas:
print "Error:", e
if e:
print "Error:", e
print 'Continuing without metadata'
if metadatas: