* morituri/common/program.py:
Don't fail if there is no metadata.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user