diff --git a/ChangeLog b/ChangeLog index 48a3bfb..a0cb288 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-08-14 Thomas Vander Stichele + + * morituri/common/program.py: + Don't fail if there is no metadata. + 2011-08-14 Thomas Vander Stichele * morituri/common/program.py: diff --git a/morituri/common/program.py b/morituri/common/program.py index e585457..273cbf7 100644 --- a/morituri/common/program.py +++ b/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: